LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2011, 01:25 PM   #1
austinbravo
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Rep: Reputation: 0
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
 
Old 01-18-2011, 01:11 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can use the mv (move) cmd.

Code:
mv /etc/sysconfig/network-scripts/ifcfg-eth5.31:0 /some/other/dir
http://linux.die.net/man/1/mv
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to remove several Half installed / configured files in aptitude utanja Debian 1 09-26-2009 12:57 PM
Unsecured wireless network used instead of configured WPA network. SCVirus Ubuntu 3 05-16-2008 12:14 AM
Network card not configured in openSUSE 10.3 jenser2 Linux - Newbie 3 03-10-2008 03:50 PM
SLES 10 no network but configured in YaST?? p33kabo0 Linux - Hardware 1 12-08-2006 03:51 PM
Network not configured - netconfig doesn't help!! NetRAVEN5000 Slackware 11 07-16-2005 10:34 AM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration