FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 03-16-2010, 07:23 PM
Jason Gates
 
Default Unable to remove interface (5.4)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So here is my problem: I'm unable to remove an interface on CentOS 5.4
(/etc/init.d/network restart keeps enabling it again)

Background:
The system had several interfaces set
(eth0 eth0.6 eth0.7 eth0.8)
1.) I added a test interface...eth0.9
2.) but later deleted the /etc/sysconfig/network-scripts/ifcfg-eth0.9
file (since i no longer needed it)
3.) I then did ifconfig eth0.9 down
4.) I then setup eth0.7 with the same IP address settings that eth0.9 had.
5.) Upon a restart of /etc/init.d/network all the interfaces come up
including eth0.9

This obviously causes a problem...are there any recommendations how to
remove this "deleted" interface? Many thanks!

Side note: rebooting the computer isn't an option.
- -Jason

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iEYEARECAAYFAkuf6LoACgkQ3BaZWzk6Q2eVugCg1gi6W19J9F 2UTKyA+3nPVWqk
evwAniLKv2Vx4qZI7ITZC4wZ+AJ2Vj5A
=Mvtr
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-16-2010, 07:26 PM
Marko Mernik
 
Default Unable to remove interface (5.4)

Hi,

Your can delete the if with vconfig.
example:
vconfig rem eth0.6

lp, Marko

Jason Gates pravi:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> So here is my problem: I'm unable to remove an interface on CentOS 5.4
> (/etc/init.d/network restart keeps enabling it again)
>
> Background:
> The system had several interfaces set
> (eth0 eth0.6 eth0.7 eth0.8)
> 1.) I added a test interface...eth0.9
> 2.) but later deleted the /etc/sysconfig/network-scripts/ifcfg-eth0.9
> file (since i no longer needed it)
> 3.) I then did ifconfig eth0.9 down
> 4.) I then setup eth0.7 with the same IP address settings that eth0.9 had.
> 5.) Upon a restart of /etc/init.d/network all the interfaces come up
> including eth0.9
>
> This obviously causes a problem...are there any recommendations how to
> remove this "deleted" interface? Many thanks!
>
> Side note: rebooting the computer isn't an option.
> - -Jason
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
>
> iEYEARECAAYFAkuf6LoACgkQ3BaZWzk6Q2eVugCg1gi6W19J9F 2UTKyA+3nPVWqk
> evwAniLKv2Vx4qZI7ITZC4wZ+AJ2Vj5A
> =Mvtr
> -----END PGP SIGNATURE-----
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 03-16-2010, 07:28 PM
"Mr. X"
 
Default Unable to remove interface (5.4)

Jason,

--- On Tue, 3/16/10, Jason Gates <jasongates@southern.edu> wrote:

> From: Jason Gates <jasongates@southern.edu>
> Subject: [CentOS] Unable to remove interface (5.4)
> To: centos@centos.org
> Date: Tuesday, March 16, 2010, 1:23 PM
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> So here is my problem: I'm unable to remove an interface on
> CentOS 5.4
> (/etc/init.d/network restart keeps enabling it again)
>

the eth0.9 might be presisted via udev rules
sudo cat /etc/udev/rules.d/60-net.rules

if you don't see it in there, then do this
>sudo grep -i eth0 /etc/rules.d/*.rules

if a line comes up, you can delete it.

--
Mark



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 05:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org