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)