|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-community
[Xen-community] dom0 bridge on eth1 and ipv6 on domU
 
Hello,
 I have a dom0 with 2 interfaces(eth0 connected to WAN, and eth1 
connected to LAN), I've got xen configured with network-bridge on eth1 
and for some reason, I had to add eth1 to virbr0 manualy with brctrl, 
and on that dom0 I have a tun6to4 interface for 6-to-4, which works 
perfectly on dom0 and using route I'm passing a /64 over to the domU, 
which works as long as I keep pinging domU from dom0 over ipv6. As soon 
as I stop pinging the ipv6 connectivity on domU is lost. Configurations 
below:
xend-config.sxp:
(network-script 'network-bridge netdev=eth1')
(vif-script vif-bridge)
modified scripts/vif-bridge:
...
case "$command" in
    online)
        setup_bridge_port "$vif"
        add_to_bridge "$bridge" "$vif"
        if [ "$vif_ip" = '172.16.0.2' ]; then
                ifconfig virbr0 add 2002:5d67:8294:5272::1/128
                ip -6 route add 2002:5d67:8294:5272::/64 dev virbr0
        fi
        ;;
...
ifconfig dom0:
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:42:D8:25
          inet addr:93.103.130.148  Bcast:93.103.255.255  
Mask:255.255.0.0
          inet6 addr: fe80::20c:6eff:fe42:d825/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32493502 errors:0 dropped:5252 overruns:0 frame:0
          TX packets:19743882 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3858497404 (3.5 GiB)  TX bytes:489259627 (466.5 MiB)
          Interrupt:19 Base address:0x2000
eth1      Link encap:Ethernet  HWaddr 00:11:6B:94:3B:39
          inet addr:172.16.64.1  Bcast:172.16.127.255  
Mask:255.255.192.0
          inet6 addr: fe80::211:6bff:fe94:3b39/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1446082 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1511689 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:893284344 (851.9 MiB)  TX bytes:1520468362 (1.4 GiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22472 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22472 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3064194 (2.9 MiB)  TX bytes:3064194 (2.9 MiB)
peth1     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:18770651 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30483389 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4138058579 (3.8 GiB)  TX bytes:1359972829 (1.2 GiB)
          Interrupt:17 Base address:0xc000
tun6to4   Link encap:IPv6-in-IPv4
          inet6 addr: 2002:5d67:8294::1/16 Scope:Global
          inet6 addr: ::93.103.130.148/128 Scope:Compat
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:95299 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94555 errors:312 dropped:0 overruns:0 carrier:312
          collisions:0 txqueuelen:0
          RX bytes:20810368 (19.8 MiB)  TX bytes:9190625 (8.7 MiB)
vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1819688 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1637468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1948516171 (1.8 GiB)  TX bytes:912858301 (870.5 MiB)
vif20.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:178357 errors:0 dropped:0 overruns:0 frame:0
          TX packets:452643 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:79072270 (75.4 MiB)  TX bytes:264012337 (251.7 MiB)
vif20.1   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:234863 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:3878 (3.7 KiB)
virbr0    Link encap:Ethernet  HWaddr 00:11:6B:94:3B:39
          inet addr:172.16.0.1  Bcast:172.16.63.255  Mask:255.255.192.0
          inet6 addr: 2002:5d67:8294:5272::1/64 Scope:Global
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1701219 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1823178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:955644061 (911.3 MiB)  TX bytes:1969517278 (1.8 GiB)
xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:176551 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:34750417 (33.1 MiB)  TX bytes:0 (0.0 b)
ifconfig domU:
eth0      Link encap:Ethernet  HWaddr 00:16:3E:36:DF:9C
          inet addr:172.16.0.2  Bcast:172.16.63.255  Mask:255.255.192.0
          inet6 addr: 2002:5d67:8294:5272::11/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::10/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::2/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::3/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::4/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::5/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::5743/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::6/64 Scope:Global
          inet6 addr: 2002:5d67:8294:5272::7/64 Scope:Global
          inet6 addr: fe80::216:3eff:fe36:df9c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:453040 errors:0 dropped:0 overruns:0 frame:0
          TX packets:178560 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:257725962 (245.7 MiB)  TX bytes:81602770 (77.8 MiB)
          Interrupt:9
Routing table domU when ping is not running from dom0:
Kernel IPv6 routing table
Destination                                 Next Hop                    
           Flags Metric Ref    Use Iface
2002:5d67:8294:5272::/64                    ::                          
           U     256    2        0 eth0
fe80::/64                                   ::                          
           U     256    0        0 eth0
::/0                                        2002:5d67:8294:5272::1      
           UG    1      3806       1 eth0
::1/128                                     ::                          
           U     0      202       1 lo
2002:5d67:8294:5272::/128                   ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::2/128                  ::                          
           U     0      24576       1 lo
2002:5d67:8294:5272::3/128                  ::                          
           U     0      245       1 lo
2002:5d67:8294:5272::4/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::5/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::6/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::7/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::10/128                 ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::11/128                 ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::5743/128               ::                          
           U     0      0        1 lo
fe80::/128                                  ::                          
           U     0      0        1 lo
fe80::216:3eff:fe36:df9c/128                ::                          
           U     0      1168       1 lo
ff02::1:ff00:0/128                          ff02::1:ff00:0              
           UC    0      66       0 eth0
ff02::1:ff36:df9c/128                       ff02::1:ff36:df9c           
           UC    0      59       0 eth0
ff00::/8                                    ::                          
           U     256    0        0 eth0
Routing table dom0 when ping to domU is not running:
Kernel IPv6 routing table
 Destination                                 Next Hop                    
           Flags Metric Ref    Use Iface
::/96                                       ::                          
           U     256    1        0 tun6to4
2002:5d67:8294:5272::2/128                  2002:5d67:8294:5272::2      
           UC    0      38       1 virbr0
2002:5d67:8294:5272::/64                    ::                          
           U     256    0        0 virbr0
2002:5d67:8294:5272::/64                    ::                          
           U     1024   0        0 virbr0
2002::/16                                   ::                          
           U     256    0        0 tun6to4
2000::/3                                    ::192.88.99.1               
           UG    1      2242       0 tun6to4
fe80::200:ff:fe00:0/128                     fe80::200:ff:fe00:0         
           UC    0      152       3 virbr0
fe80::216:3eff:fe36:df9c/128                fe80::216:3eff:fe36:df9c    
           UC    0      191       3 virbr0
fe80::/64                                   ::                          
           U     256    0        0 virbr0
fe80::/64                                   ::                          
           U     256    0        0 vif0.0
fe80::/64                                   ::                          
           U     256    0        0 peth1
fe80::/64                                   ::                          
           U     256    0        0 vif20.0
fe80::/64                                   ::                          
           U     256    0        0 vif20.1
fe80::/64                                   ::                          
           U     256    0        0 eth0
fe80::/64                                   ::                          
           U     256    0        0 eth1
fe80::/64                                   ::                          
           U     256    0        0 tun6to4
::1/128                                     ::                          
           U     0      3        1 lo
::93.103.130.148/128                        ::                          
           U     0      0        1 lo
2002::/128                                  ::                          
           U     0      0        2 lo
2002:5d67:8294::1/128                       ::                          
           U     0      58       1 lo
2002:5d67:8294:5272::/128                   ::                          
           U     0      0        2 lo
2002:5d67:8294:5272::1/128                  ::                          
           U     0      2559       1 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::20c:6eff:fe42:d825/128                ::                          
           U     0      0        1 lo
fe80::211:6bff:fe94:3b39/128                ::                          
           U     0      0        1 lo
ff00::/8                                    ::                          
           U     256    0        0 virbr0
ff00::/8                                    ::                          
           U     256    0        0 vif0.0
ff00::/8                                    ::                          
           U     256    0        0 peth1
ff00::/8                                    ::                          
           U     256    0        0 vif20.0
ff00::/8                                    ::                          
           U     256    0        0 vif20.1
ff00::/8                                    ::                          
           U     256    0        0 eth0
ff00::/8                                    ::                          
           U     256    0        0 eth1
ff00::/8                                    ::                          
           U     256    0        0 tun6to4
Routing table domU when ping is runnign from dom0:
Kernel IPv6 routing table
 Destination                                 Next Hop                    
           Flags Metric Ref    Use Iface
2002:5d67:8294:5272::1/128                  2002:5d67:8294:5272::1      
           UC    0      7        0 eth0
2002:5d67:8294:5272::/64                    ::                          
           U     256    2        0 eth0
fe80::/64                                   ::                          
           U     256    0        0 eth0
::/0                                        2002:5d67:8294:5272::1      
           UG    1      3806       1 eth0
::1/128                                     ::                          
           U     0      202       1 lo
2002:5d67:8294:5272::/128                   ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::2/128                  ::                          
           U     0      24590       1 lo
2002:5d67:8294:5272::3/128                  ::                          
           U     0      245       1 lo
2002:5d67:8294:5272::4/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::5/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::6/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::7/128                  ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::10/128                 ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::11/128                 ::                          
           U     0      0        1 lo
2002:5d67:8294:5272::5743/128               ::                          
           U     0      0        1 lo
fe80::/128                                  ::                          
           U     0      0        1 lo
fe80::216:3eff:fe36:df9c/128                ::                          
           U     0      1168       1 lo
ff02::1:ff00:0/128                          ff02::1:ff00:0              
           UC    0      120       0 eth0
ff02::1:ff00:2/128                          ff02::1:ff00:2              
           UC    0      45       0 eth0
ff02::1:ff36:df9c/128                       ff02::1:ff36:df9c           
           UC    0      98       0 eth0
ff00::/8                                    ::                          
           U     256    0        0 eth0
Routing table dom0 when ping is running to domU:
Kernel IPv6 routing table
 Destination                                 Next Hop                    
           Flags Metric Ref    Use Iface
::/96                                       ::                          
           U     256    1        0 tun6to4
2002:5d67:8294:5272::2/128                  2002:5d67:8294:5272::2      
           UC    0      140       0 virbr0
2002:5d67:8294:5272::/64                    ::                          
           U     256    0        0 virbr0
2002:5d67:8294:5272::/64                    ::                          
           U     1024   0        0 virbr0
2002::/16                                   ::                          
           U     256    0        0 tun6to4
2000::/3                                    ::192.88.99.1               
           UG    1      2251       0 tun6to4
fe80::200:ff:fe00:0/128                     fe80::200:ff:fe00:0         
           UC    0      313       0 virbr0
fe80::216:3eff:fe36:df9c/128                fe80::216:3eff:fe36:df9c    
           UC    0      304       0 virbr0
fe80::/64                                   ::                          
           U     256    0        0 virbr0
fe80::/64                                   ::                          
           U     256    0        0 vif0.0
fe80::/64                                   ::                          
           U     256    0        0 peth1
fe80::/64                                   ::                          
           U     256    0        0 vif20.0
fe80::/64                                   ::                          
           U     256    0        0 vif20.1
fe80::/64                                   ::                          
           U     256    0        0 eth0
fe80::/64                                   ::                          
           U     256    0        0 eth1
fe80::/64                                   ::                          
           U     256    0        0 tun6to4
::1/128                                     ::                          
           U     0      3        1 lo
::93.103.130.148/128                        ::                          
           U     0      0        1 lo
2002::/128                                  ::                          
           U     0      0        2 lo
2002:5d67:8294::1/128                       ::                          
           U     0      58       1 lo
2002:5d67:8294:5272::/128                   ::                          
           U     0      0        2 lo
2002:5d67:8294:5272::1/128                  ::                          
           U     0      2624       1 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::/128                                  ::                          
           U     0      0        2 lo
fe80::20c:6eff:fe42:d825/128                ::                          
           U     0      0        1 lo
fe80::211:6bff:fe94:3b39/128                ::                          
           U     0      0        1 lo
ff00::/8                                    ::                          
           U     256    0        0 virbr0
ff00::/8                                    ::                          
           U     256    0        0 vif0.0
ff00::/8                                    ::                          
           U     256    0        0 peth1
ff00::/8                                    ::                          
           U     256    0        0 vif20.0
ff00::/8                                    ::                          
           U     256    0        0 vif20.1
ff00::/8                                    ::                          
           U     256    0        0 eth0
ff00::/8                                    ::                          
           U     256    0        0 eth1
ff00::/8                                    ::                          
           U     256    0        0 tun6to4
 I don't know where to go or look further, so any help will be 
appreciated.
Regards,
Thomas
_______________________________________________
Xen-community mailing list
Xen-community@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-community
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-community] dom0 bridge on eth1 and ipv6 on domU,
Tomaž Lovrec <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |