How to remove a configured network file
Hi,
I have to perform a bonding in few of the redhat linux servers. This is the set of files I created in /etc/sysconfig/network-scripts
ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
IP=XXXX
NETMASK=XXXXX
BONDIN_OPTS="mode=4 MIIMON=100"
ONBOOT=yes
ifcfg-eth5.31
#this is the primary for vlan 31
DEVICE=eth5.31
BOOTPROTO=static
IP=XXXX
NETMASK=XXXXX
ONBOOT=yes
VLAN=yes
ifcfg-eth5.31:0
#this is the sec for vlan 31
DEVICE=eth5.31:0
BOOTPROTO=static
IP=XXXX
NETMASK=XXXXX
ONBOOT=yes
VLAN=yes
Both the primary ip in bond0 and the next ip are in native VLAN 31. So, I shouldn't tag the native VLAN. So all I need to do is change the file name and remove the vlan=yes option.
But after I did the ifdownfor ifcfg-eth5.31 and ifcfg-eth5.31:0, I tried cheking the following
service network status
lo eth0 eth1 eth2 eth4 eth5.31 eth5.31:0
Those two are showing still configured. What is the procedure to remove them from the configured list. I don't have a x display to do it graphically.
Any commands would be appreciated. All I want to do is rename them to different file names and remove them from the network service.
Thank you
|