1. configure the first IP address in Linux: [root @ Linuxroot] # cd/etc/sysconfig/network-scripts [root @ Linuxnetwork-scripts] # viifcfg-eth0DEVICE = eth0BOOTPROTO = static
1. configure the first IP address in Linux:
[Root @ Linux root] # cd/etc/sysconfig/network-scripts
[Root @ Linux network-scripts] # vi ifcfg-eth0
DEVICE = eth0
BOOTPROTO = static
BROADCAST = 192.168.80.255 // * BROADCAST address *//
IPADDR = 192.168.80.189 // * The first IP address *//
NETMASK = 255.255.255.0 // * network mask *//
NETWORK = 192.168.80.0 // * NETWORK segment *//
ONBOOT = yes
: Wq // * save and exit *//
2. copy the first IP address configuration file to the second IP address configuration file and modify the IP address:
[Root @ Linux network-scripts] # cp ifcfg-eth0 ifcfg-eth1
[Root @ Linux network-scripts] # vi ifcfg-eth1
DEVICE = eth0
BOOTPROTO = static
BROADCAST = 192.168.80.255 // * BROADCAST address *//
IPADDR = 192.168.80.199 // * Second IP address *//
NETMASK = 255.255.255.0 // * network mask *//
NETWORK = 192.168.80.0 // * NETWORK segment *//
ONBOOT = yes
: Wq // * save and exit *//