法克
2002-12-10, 09:04 AM
我用的是 FreeBSD 4.6.2,請問如何在將一張網卡設定兩隻 IP?
感謝
贊助商連結
感謝
贊助商連結
贊助商連結 法克 2002-12-10, 09:04 AM 我用的是 FreeBSD 4.6.2,請問如何在將一張網卡設定兩隻 IP? 感謝 贊助商連結 repsol 2002-12-10, 10:48 AM man ifconfig alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. -alias Remove the network address specified. This would be used if you incorrectly specified an alias, or it was no longer needed. If you have incorrectly set an NS address having the side effect of specifying the host portion, removing all NS addresses will allow you to respecify the host portion. ifconfig device_node alias xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxxx example : ifconfig vr0 alias 192.168.254.90 netmask 255.255.255.255 |
|