[SOLVED] [5.2.1]Two default route after /etc/network/interfaces manual creation

Discussion in 'Proxmox VE: Networking and Firewall' started by flotho, May 18, 2018.

  1. flotho

    flotho New Member

    Joined:
    Sep 3, 2012
    Messages:
    16
    Likes Received:
    0
    Hi,

    I've just installed a fresh proxmox 5.2.1 on SoYouStart Datacenter. I'm really surprised to have no interface file available.
    It's really stranged because i've already installed 4.x and 5.1.x successfully.
    Any advice ?

    regards
     
  2. flotho

    flotho New Member

    Joined:
    Sep 3, 2012
    Messages:
    16
    Likes Received:
    0
    Well,
    We didin't really know why this happened, but we recreate the interface file with correct parameters and almost everything is working.

    We still have an issue in routing, we have 2 default routes and we didin't succeed in identifying where the first route associated to the physical NIC is defined.

    Any comments on this latest part would be appreciated.
    regards
     
  3. flotho

    flotho New Member

    Joined:
    Sep 3, 2012
    Messages:
    16
    Likes Received:
    0
    Here is the interface file :

    Code:
    # network interface settings; autogenerated
    
    auto lo
    iface lo inet loopback
    
    auto vmbr1
    iface vmbr1 inet manual
            bridge_ports dummy0
            bridge_stp off
            bridge_fd 0
    
    auto vmbr0
    iface vmbr0 inet static
            address A.B.C.D
            netmask 255.255.255.0
            gateway  A.B.C.D2
            bridge_ports enp3s0
            bridge_stp off
            bridge_fd 0
    
    iface vmbr0 inet6 static
            address  ipv6:public:adress
            netmask  64
            post-up /sbin/ip -f inet6 route add                     ipv6:gw dev vmbr0
            post-up /sbin/ip -f inet6 route add default via         ipv6:gw
            pre-down /sbin/ip -f inet6 route del default via        ipv6:gw
            pre-down /sbin/ip -f inet6 route del                    ipv6:gw dev vmbr0
    
    auto vmbr02
    iface vmbr02 inet static
            address  10.0.172.254
            netmask  255.255.255.0
            bridge_ports none
            bridge_stp off
            bridge_fd 0
    #WAN for internal routing and NAT : 10.0.172.254/24
    
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up route add -net PUB.IP.SL.OT/28 gw 10.0.172.253
        post-up iptables -t nat -A POSTROUTING -s '10.0.172.253/32' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.0.172.253/32' -o vmbr0 -j MASQUERADE
        
    
    auto vmbr03
    iface vmbr03 inet static
            bridge_ports none
            bridge_stp off
            bridge_fd 0
    #DMZ : 10.0.173.254/24
    
    auto vmbr04
    iface vmbr04 inet static
            address  10.0.174.254
            netmask  255.255.255.0
            bridge_ports none
            bridge_stp off
            bridge_fd 0
    #10.0.174.0/24 : 10.0.174.254/24
    
    
    
     
    #3 flotho, May 22, 2018 at 15:20
    Last edited: May 22, 2018 at 16:12
  4. flotho

    flotho New Member

    Joined:
    Sep 3, 2012
    Messages:
    16
    Likes Received:
    0
    Obviously, default network conf in recent SoYouStart install for PXMX>5.2 is configured thanks to :
    https://www.freedesktop.org/software/systemd/man/systemd.network.html
    The default conf is found under /etc/systemd/network/[50-default.network]
    Commenting the routing part allow my interfaces conf to be fully interpreted.

    Thanks for all the comments on the ##proxmox channel !
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice