- 论坛徽章:
- 0
|
看看ifconfig的帮助,有个alias的功能
临时:
# ifconfig interface alias address netmask [mask_num] broadcast [boardcase address]
永久:
Creating an IP Aliases File
You can save IP alias settings in the /etc/config/ipaliases.options file so they are automatically assigned during the network initialization process. The ipaliases.options file is read by the network script if the /etc/config/ipaliases file contains the value on. Use the procedure below to create an ipaliases.options file and assign IP aliases automatically during network initialization:
Edit ipaliases.options using your favorite editor:
# vi /etc/config/ipaliases.options
Your entries should look similar to the example below. In this example, broadcasting is performed on the Ethernet but not the FDDI network:
ec0 128.64.56.51 netmask 0xffffff00 broadcast 128.64.56.255
ec0 128.64.56.12 netmask 0xffffff00 broadcast 128.64.56.255
ipg0 190.111.79.16 netmask 0xffffff00
ipg0 190.111.79.10 netmask 0xffffff00
http://techpubs.sgi.com/library/ ... /sgi_html/ch03.html
[ 本帖最后由 sgi1991 于 2008-5-16 14:28 编辑 ] |
|