Results 1 to 3 of 3

Thread: default gateway does not set with vlan

  1. #1
    Join Date
    Feb 2010
    Beans
    2

    default gateway does not set with vlan

    I've got ubuntu 16.04.1 server with two interfaces, each of them connected to different member of switch stack.

    /etc/network/interfaces
    Code:
    auto lo
    iface lo inet loopback
    
    auto eno1
    iface eno1 inet manual
        bond-master bond0
    
    auto eno2
    iface eno2 inet manual
        bond-master bond0
    
    auto bond0
    iface bond0 inet manual
        bond-slaves eno1 eno2
        bond-mode 802.3ad
        bond-miimon 100
        bond-lacp-rate 1
    
    auto vlan2
    iface vlan2 inet static
        vlan_raw_device bond0
        address 192.168.0.10
        netmask 255.255.255.0
        gateway 192.168.0.1
        dns-nameservers 192.168.0.1 192.168.0.2
        dns-search local
    After reboot I expect 192.168.0.1 as default gw in routing table but it's not

    Code:
    root@ubuntu:/# netstat -rn
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.0.0   0.0.0.0         255.255.255.0   U         0 0          0 vlan2
    After executing "route add default gw 192.168.0.1" everything works fine

    I've temporary solved the problem by adding this command to /etc/rc.local but it should work as expected. Same config on 14.04.04 works fine.

  2. #2
    Join Date
    Dec 2016
    Beans
    1

    Re: default gateway does not set with vlan

    Bump.

    I have the same issue with 16.04 ... are we doing s'thing wrong ?

    thx

  3. #3
    Join Date
    Dec 2016
    Beans
    1

    Re: default gateway does not set with vlan

    hi! the same issue..

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
  •