|
发表于 2003-12-17 08:02:41
|
显示全部楼层
I don't have any trouble to set an alias,
my network interface is dc0
laptop# ifconfig dc0
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::210:a4ff:fe9b:6cd7%dc0 prefixlen 64 scopeid 0x3
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:10:a4:9b:6c:d7
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
laptop# ifconfig dc0 alias 10.73.125.120 netmask 255.255.255.0
laptop#
laptop# ifconfig dc0
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::210:a4ff:fe9b:6cd7%dc0 prefixlen 64 scopeid 0x3
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
inet 10.73.125.120 netmask 0xffffff00 broadcast 10.73.125.255
ether 00:10:a4:9b:6c:d7
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
laptop#
Conclusion: the only trouble you could have is:
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.
shortly, if your alias is on the same subnet with first network, netmask should be 255.255.255.255, not 255.255.255.0 |
|