LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12: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, 12:11 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 11:57 AM
Unsecured wireless network used instead of configured WPA network. SCVirus Ubuntu 3 05-15-2008 11:14 PM
Network card not configured in openSUSE 10.3 jenser2 Linux - Newbie 3 03-10-2008 02:50 PM
SLES 10 no network but configured in YaST?? p33kabo0 Linux - Hardware 1 12-08-2006 02:51 PM
Network not configured - netconfig doesn't help!! NetRAVEN5000 Slackware 11 07-16-2005 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 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
Open Source Consulting | Domain Registration