※ 引述《[email protected] (學校網路終於》之銘言:
> 麻煩請告訴我...
> 使用ifconfig的設定方法
ifconfig [interface] inet [ip] netmask 255.255.255.255 alias
> 還有rc.conf的設定方法
ifconfig_[interface]_alias0="inet [ip] netmask 255.255.255.255"
--
記得之前有回過前者
有問題不妨先man man看 :)
man ifconfig
man rc.conf
--
藍 ***。˙∵‥∴*****。˙∵‥。˙∵‥∴。˙∵。˙∵‥∴****。
色 ┬┴┬┴┬┴┬┴◆ Origin : 藍色傳說 bbs.seehere.idv.tw
傳 ┬┴┬┴┬┴┬┴◇ From : 61-222-227-131.HINET-IP.hinet.net
說 ***。˙∵‥∴*****。˙∵‥。˙∵‥∴。˙∵‥。˙∵‥∴****
> -------------------------------------------------------------------------- <
發信人: [email protected] (獅子男), 看板: FreeBSD
標 題: Re: 如何在一張網路卡設兩個IP
發信站: 星情小築 (Sun May 4 00:33:24 2003)
轉信站: Ptt!news.ntu!news.mcu!newsfeed.nthu!ctu-peer!news.nctu!netnews.chu!Leo
※ 引述《[email protected] (學校網路終於好了)》之銘言:
: 麻煩請告訴我...
: 使用ifconfig的設定方法
man ifconfig
: 還有rc.conf的設定方法
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
configtuning-virtual-hosts.html (接成一行)
> -------------------------------------------------------------------------- <
發信人: [email protected] (風薰 人醉), 看板: FreeBSD
標 題: Re: 如何在一張網路卡設兩個IP
發信站: 夢之大地 (Sun May 4 00:32:05 2003)
轉信站: Ptt!news.ntu!freebsd.ntu!netnews.csie.nctu!news.civil.ncku!news.ccns.n
※ 引述《[email protected] (學校網路終於好了)》之銘言:
> 麻煩請告訴我...
> 使用ifconfig的設定方法
> 還有rc.conf的設定方法
very old FAQ
ifconfig NIC alias xxx.xxx.xxx.xxx netmask 0xffffffff
ifconfig_NIC_alias inet xxx.xxx.xxx.xxx netmask 0xfffffff