1

I bought up a vlan interface by running ifup on my ifcfg-vlan10 file, now when I do ifdown the ip connection goes down, however the device vlan10 is still visible in ifconfig. Why is that the case and how do I get rid of it from ifconfig?

4
  • have you tried to remove the configuration file from /etc/sysconfig/network-scripts ?
    – Danie
    Commented Feb 11, 2013 at 13:21
  • no unfortunately it doesn't disappear from ifconfig if I "rm" the file ifcfg-vlan10 in /etc/sysconfig/network-scripts.
    – Dan
    Commented Feb 11, 2013 at 14:59
  • Why do you want it to disappear? Commented Feb 11, 2013 at 15:04
  • well my understanding is that is shouldn't be there if it's not active. Typically my experience has been if the interface is active (or up) it will display in ifconfig, for any other interfaces you need to run "ifconfig -a" to display the remainder. In any case since I've deleted the dev by running "ip delete dev vlan10" and I've down'ed the interface via ifdown, I can't see how it should be available.
    – Dan
    Commented Feb 11, 2013 at 16:13

1 Answer 1

1

Does vconfig do what you want ?

vconfig rem vlan10

or similar.

2
  • no, it's still there after running vconfig, although vconfig said: Removed VLAN -:vlan10:-. I just don't get what is ifconfig showing.
    – Dan
    Commented Feb 11, 2013 at 12:17
  • running the following shows it is present still: cat /proc/net/vlan/vlan10
    – Dan
    Commented Feb 11, 2013 at 12:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .