Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0:0
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0:1 
service network restart
ifconfig 
[root@node1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0*
ifcfg-eth0:0 :
DEVICE="eth0:0"
BOOTPROTO="static"
BROADCAST="192.168.1.255"
DNS1="192.168.1.149"
GATEWAY="192.168.1.1"
IPADDR="192.168.1.217"
NETMASK="255.255.255.0"
ONBOOT="yes"
TYPE="Ethernet" 
ifcfg-eth0:1 :
DEVICE="eth0:1"
BOOTPROTO="static"
BROADCAST="192.168.1.255"
DNS1="192.168.1.149"
GATEWAY="192.168.1.1"
IPADDR="192.168.1.218"
NETMASK="255.255.255.0"
ONBOOT="yes"
TYPE="Ethernet" 
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth*

Bonus :

 
  • No labels