Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to configure two ISP on different network cards and at the same time to use bridge in order work with virtual machines and KVM. The current network configuration can be seen below:

auto lo  
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0 
iface br0 inet static
        address 192.168.1.101
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off 
        bridge_fd 0
        bridge_maxwait 0
        dns-nameservers 8.8.8.8
        post-up ip route add default via 192.168.1.1 dev br0 table isp1 
        post-up ip rule add from 192.168.1.0/24 table isp1                                                                                                                                         

auto br1 
iface br1 inet static
        address xx.yy.zz.55
        netmask 255.255.255.0
        bridge_ports eth1
        bridge_stp off 
        bridge_fd 0
        bridge_maxwait 0
        dns-nameservers 8.8.8.8
        post-up ip route add default via xx.yy.zz.1 dev br1 table isp2
        post-up ip rule add from xx.yy.zz.0/24 table isp2

Now what are my problems:

  1. With the current configuration I can't ssh on 192.168.1.101 from another computer on LAN, but i can ssh into any virtual machines on the LAN created on the PC. Same goes for ping...i'll give tcpdump output bellow:

    tcpdump -nn -i br0 host 192.168.1.105 
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
    
    15:55:17.517347 IP 192.168.1.105 > 192.168.1.101: ICMP echo request, id 26609,         seq 1, length 64
    15:55:17.517372 IP 192.168.1.101 > 192.168.1.105: ICMP echo reply, id 26609, seq 1, length 64
    15:55:18.514642 IP 192.168.1.105 > 192.168.1.101: ICMP echo request, id 26609, seq 2, length 64
    15:55:18.514668 IP 192.168.1.101 > 192.168.1.105: ICMP echo reply, id 26609, seq 2, length 64
    

This is what i see on the other end:

    PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data.
    --- 192.168.1.101 ping statistics ---
    2 packets transmitted, 0 received, 100% packet loss, time 999ms
  1. I can't access PC using the external IP (xx.yy.zz.55). I canse someone will need the current ip route and rule you can see below:

    # ip r show
    
    default via 192.168.1.1 dev br0 
    xx.yy.zz.0/24 dev br1  proto kernel  scope link  src xx.yy.zz.55
    169.254.0.0/16 dev br1  scope link  metric 1000 
    192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.101 
    192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 
    
    # ip r show table isp1
    default via 192.168.1.1 dev br0 
    
    # ip r show table isp2
    default via xx.yy.zz.1 dev br1 
    
    # ip rule show
    0:  from all lookup local 
    32764:  from 192.168.1.0/24 lookup isp1 
    32765:  from 89.35.223.0/24 lookup isp2
    32766:  from all lookup main 
    32767:  from all lookup default 
    

Thank you!

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.