[root@freebsd0:~] ifconfig bce0 alias 172.16.1.81 netmask 255.255.255.0
[root@freebsd0:~] ifconfig bce0
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:22:19:5f:52:0b
inet 172.16.1.27 netmask 0xffffff00 broadcast 172.16.1.255
inet 172.16.1.81 netmask 0xffffff00 broadcast 172.16.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vim /etc/rc.conf
ifconfig_bce0_alias0="inet 172.16.1.81 netmask 255.255.255.0"
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。