-----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
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)
iEYEARECAAYFAkuf6LoACgkQ3BaZWzk6Q2eVugCg1gi6W19J9F2UTKyA+3nPVWqk evwAniLKv2Vx4qZI7ITZC4wZ+AJ2Vj5A =Mvtr -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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.