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 *//