Bind multiple IP addresses in linux

Source: Internet
Author: User
Binding multiple IP addresses in linux recently, sipP is used to bind multiple IP addresses to a single NIC. my system is Ubuntu12.04. the specific configuration is as follows: my system only has one Nic eth0, to bind multiple ip addresses to a single NIC, you need to set the/etc/network/interface file to the following configuration before modifying the File: www .... binding multiple IP addresses in linux recently, sipP is used to bind multiple IP addresses to a single NIC. my system is Ubuntu12.04. the specific configuration is as follows: my system only has one Nic eth0, to bind multiple ip addresses to a single NIC, you must set the/etc/network/interface file as follows: www.2cto.com # The loopback network interfaceauto loiface lo inet loopback # The primary network interfaceauto eth0iface eth0 inet staticaddress 192. When parameter 192.168.0.1 is modified, The configuration is as follows: auto loiface lo inet loopback # The primary network interfaceauto appseth0 inet staticaddress implements 255.255.255.255.255.0.0gateway 192.168.0.1 auto eth0: 0 iface eth0: 1 iface eth0: 1 inet staticaddress 192.168.82.3netmask 255.255.255.0.0auto eth0: 2 iface eth0: 2 inet staticaddress 192.1 68.82.4netmask 255.255.0.0 ........ the specific number of ip addresses to be bound depends on your needs. Save the ip address and exit the Command/etc/init. d/networking restart the Nic ifconfig command to view the IP address eth0 Link encap :?????? ??????? · 00: 0c: 29: 5d: ef: bb inet ??? ·: 192.168.82.1 ????: 192.168.255.255 ????: 255.255.0.0 inet6 ??? ·: Fe80: 20c: 29ff: fe5d: efbb/64 Scope: Link up broadcast running multicast mtu: 1500 ??????: 1 ???????? ° U: 3170483732? Í? Ó: 1400 ??? Ú: 2719 ????: 0 ????: 0 ·??????? ° U: 3145233717? Í? Ó: 0 ??? Ú: 0 ????: 0 ??? ?: 0 ?? ×?: 0 ·???????? Why ??: 1000 ???? × ???: 2525684660 (2.5 GB )·??? × ???: 1704702676 (1.7 GB )????: 19? Ù ± ???? ·: 0x2000 eth0: 0 Link encap :?????? ??????? · 00: 0c: 29: 5d: ef: bb inet ??? ·: 192.168.82.2 ????: 192.168.255.255 ????: 255.255.0.0 up broadcast running multicast mtu: 1500 ??????: 1 ????: 19? Ù ± ???? ·: 0x2000 eth0: 1 Link encap :?????? ??????? · 00: 0c: 29: 5d: ef: bb inet ??? ·: 192.168.82.3 ????: 192.168.255.255 ????: 255.255.0.0 up broadcast running multicast mtu: 1500 ??????: 1 ????: 19? Ù ± ???? ·: 0x2000 eth0: 2 Link encap :?????? ??????? · 00: 0c: 29: 5d: ef: bb inet ??? ·: 192.168.82.4 ????: 192.168.255.255 ????: 255.255.0.0 up broadcast running multicast mtu: 1500 ??????: 1 ????: 19? Ù ± ???? ·: 0x2000 lo Link encap: ± ???? ·?? Inet ??? ·: 127.0.0.1 ????: 255.0.0.0 inet6 ??? · ::: 1/128 Scope: Host up loopback running mtu: 16436 ??????: 1 ???????? ° U: 80? Í? Ó: 0 ??? Ú: 0 ????: 0 ????: 0 ·??????? ° U: 80? Í? Ó: 0 ??? Ú: 0 ????: 0 ??? ?: 0 ?? ×?: 0 ·???????? Why ??: 0 ???? × ???: 39904 (39.9 KB )·??? × ???: 39904 (39.9 KB, ping the newly added address. you can ping the address. Root @ ubuntu :~ /Sipp. svn/uas # ping 192.168.82.2PING 192.168.82.2 (192.168.82.2) 56 (84) bytes of data.64 bytes from 192.168.82.2: icmp_req = 1 ttl = 64 time = 0.199 ms64 bytes from 192.168.82.2: icmp_req = 2 ttl = 64 time = 0.089 MS
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.