RHEL5 bind multiple IP addresses to the next Nic

Source: Internet
Author: User
In Windows, a network card can be bound to multiple IP addresses. You only need to add specific IP addresses to the "advanced" option of the "TCP/IP attribute" of the network card, in the Linux character environment, how does one implement it! The following describes the procedure: [root @ ns1 ~] # Cd/etc/sysconfig/network-scripts/[root @ ns1network-scripts] # lsifcfg-eth0 & n

In Windows, a network card can be bound to multiple IP addresses. You only need to add specific IP addresses to the "advanced" option of the "TCP/IP attribute" of the network card, in the Linux character environment, how does one implement it! The following describes the procedure:

[Root @ ns1 ~] # Cd/etc/sysconfig/network-scripts/

[Root @ ns1 network-scripts] # ls
Ifcfg-eth0 ifdown-isdn ifup-aliases ifup-plip ifup-wireless
Ifcfg-lo ifdown-post ifup-bnep ifup-plusb init. ipv6-global
Ifdown-ppp ifup-eth ifup-post net. hotplug
Ifdown-bnep ifdown-routes ifup-ippp ifup-ppp network-functions
Ifdown-eth ifdown-sit ifup-ipsec ifup-routes network-functions-ipv6
Ifdown-ippp ifdown-sl ifup-ipv6 ifup-sit
Ifdown-ipsec ifdown-tunnel ifup-ipx ifup-sl
Ifdown-ipv6 ifup-isdn ifup-tunnel


[Root @ ns1 network-scripts] # cp ifcfg-eth0 ifcfg-eth0: 1

[Root @ ns1 network-scripts] # vi ifcfg-eth0: 1

# Digital Equipment Corporation DECchip 21140 [FasterNet]
DEVICE = eth0: 1
BOOTPROTO = static
HWADDR = 00: 03: FF: 43: 1A: B9
ONBOOT = yes
IPADDR = 192.168.0.30
NETMASK = 255.255.255.0

[Root @ ns1 network-scripts] # cd
[Root @ ns1 ~] # Service network restart
Shutting down interface eth0: [OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: [OK]

[Root @ ns1 ~] # Ifconfig
Eth0 Link encap: Ethernet HWaddr 00: 03: FF: 43: 1A: B9
Inet addr: 192.168.0.20 Bcast: 192.168.0.255 Mask: 255.255.255.0
Inet6 addr: fe80 :: 203: ffff: fe43: 1ab9/64 Scope: Link
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets: 9137 errors: 11 dropped: 0 overruns: 0 frame: 0
TX packets: 7251 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 775430 (757.2 KiB) TX bytes: 905855 (884.6 KiB)
Interrupt: 11 Base address: 0x6000

Eth0: 1 Link encap: Ethernet HWaddr 00: 03: FF: 43: 1A: B9
Inet addr: 192.168.0.30 Bcast: 192.168.0.255 Mask: 255.255.255.0
Up broadcast running multicast mtu: 1500 Metric: 1
Interrupt: 11 Base address: 0x6000

Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 116 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 116 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 10687 (10.4 KiB) TX bytes: 10687 (10.4 KiB)

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.