Results 1 to 7 of 7

Thread: Removing virtual ip interfaces

  1. #1
    Join Date
    Aug 2014
    Beans
    14

    Removing virtual ip interfaces

    I have created some virtual interfaces somehow and I'd like to remove them just for aesthetic sake.

    docker0 Link encap:Ethernet HWaddr 02:42:9f:79:93:97
    inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    virbr0 Link encap:Ethernet HWaddr 52:54:00:6d:0a:f5
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    I installed docker at one point, but I'm pretty sure I've removed it. Then docker0 still remains and I'm unsure what I need to do to completely get rid of it.

    I have no idea why virbr0 was created.

    Thanks for your time.

  2. #2
    Join Date
    Dec 2007
    Beans
    562

    Re: Removing virtual ip interfaces

    You need a bridge to connect your container to the outside, hence virbr0. docker0 is the virtual nic of the container. Anyway, check /etc/network/interfaces to see if it's specified there.

  3. #3
    Join Date
    Aug 2014
    Beans
    14

    Re: Removing virtual ip interfaces

    Quote Originally Posted by newbie-user View Post
    You need a bridge to connect your container to the outside, hence virbr0. docker0 is the virtual nic of the container. Anyway, check /etc/network/interfaces to see if it's specified there.
    # interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback

    This is all I have in the interfaces file.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Removing virtual ip interfaces

    You can try tearing down the interfaces manually with ifconfig:
    Code:
    sudo ifconfig docker0 down
    but you should still see if you can determine what is creating the interface in the first place. I have no experience with containers so I can't help much more I'm afraid.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Aug 2014
    Beans
    14

    Re: Removing virtual ip interfaces

    Quote Originally Posted by SeijiSensei View Post
    You can try tearing down the interfaces manually with ifconfig:
    Code:
    sudo ifconfig docker0 down
    but you should still see if you can determine what is creating the interface in the first place. I have no experience with containers so I can't help much more I'm afraid.
    Yeah, they can go down, but they just come back after a reboot.

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Removing virtual ip interfaces

    Do you see anything in /etc/rc.local? Is there a launcher for docker still hanging around in /etc/init.d? These are the likely places where the interface would be created.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Dec 2007
    Beans
    562

    Re: Removing virtual ip interfaces

    Here is Docker's documentation on Docker networking: https://docs.docker.com/engine/userguide/networking/

    Seems virbr0 and docker0 are automatically created when you install Docker

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •