- 论坛徽章:
- 0
|
怎样绑定两个IP?
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
Create an ipaliases file and set IP aliasing on in the file:
# chkconfig ipaliases on
Stop and restart the network to put your changes into effect:
/etc/init.d/network stop
/etc/init.d/network start |
|