[VLAN] VLAN and bridging with xen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to get a bridging and VLAN working together with an unexpected 
lack of success.  ICMP pings are working well, but UDP traffic isn't 
working. Without the VLAN interface I can get my XEN/bridging networking 
working (but limited by the number of physical interfaces).  Without the XEN 
interfaces I regularly setup VLAN interfaces, as well as using 802.3ad 
bonding. However I seem to be unable to get the bridges to XEN interfaces 
working with VLAN's.

I'm trying to bridge the traffic from the VLAN interface to a xen vif 
interface. I only have IP addresses on the virtual Ethernet interfaces (in 
the xen vm's). I've got a default MTU of 1500.

The machine is a dual Opteron, with PCIe SK-9E22 dual GbE (I also have a 
Intel Pro/1000 dual MT in the machine, but it seems to display the same 
issue). The kernel is 2.6.12.6 from xen 3.0 unstable. The installation is 
Fedora Core 4, x86_64. The switch is a Dell 5324. No firewall rules. No 
bridge filtering.

I'm getting desperate to find a fix. I've been trying to work through this 
for a few weeks, and I've made very little progress. I can provide traffic 
dumps or any other information. Any help would be appreciated. I must be 
missing something simple.

Thanks,

Greg :-)



This non-VLAN configuration works ok.

  eth0--br148--vif7.0--veth0


This VLAN configuration doesn't work.


  eth0--eth0.148--br148--vif7.0--veth0


This also doesn't work, but is the direction I would like to move towards 
once I can get the VLAN configuration above working.


  eth0--+--bond0--bond0.148--br148--vif7.0--veth0
  eth1--+

--------8<---------

# cat /proc/net/vlan/config
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.148       | 148  | eth0

--------8<---------

# cat /proc/net/vlan/eth0.148
eth0.148  VID: 148       REORDER_HDR: 1  dev->priv_flags: 1
         total frames received           66
          total bytes received         4312
      Broadcast/Multicast Rcvd            0

      total frames transmitted          169
       total bytes transmitted        13801
            total headroom inc            0
           total encap on xmit          169
Device: eth0
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings:

--------8<---------

# brctl show
bridge name     bridge id               STP enabled     interfaces
br133           8000.0007e9111f40       no              eth2
                                                        vif0.0
br140           8000.0007e9111f41       no              eth3
                                                        vif1.0
                                                        vif2.0
br148           8000.00005a72a6b6       no              eth0.148
                                                        vif7.0
br149           8000.00005a72a6b7       no              eth1
                                                        vif6.0

--------8<---------


# ip addr show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: vif0.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
3: veth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:aa:00:01:33:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.133.1/24 brd 192.168.133.255 scope global veth0
5: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:00:5a:72:a6:b6 brd ff:ff:ff:ff:ff:ff
6: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:00:5a:72:a6:b7 brd ff:ff:ff:ff:ff:ff
7: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:11:1f:40 brd ff:ff:ff:ff:ff:ff
8: eth3: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:07:e9:11:1f:41 brd ff:ff:ff:ff:ff:ff
12: br133: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:07:e9:11:1f:40 brd ff:ff:ff:ff:ff:ff
13: br140: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:07:e9:11:1f:41 brd ff:ff:ff:ff:ff:ff
14: br148: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:00:5a:72:a6:b6 brd ff:ff:ff:ff:ff:ff
15: br149: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:00:5a:72:a6:b7 brd ff:ff:ff:ff:ff:ff
16: eth0.148: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP> mtu 1500 qdisc noqueue
    link/ether 00:00:5a:72:a6:b6 brd ff:ff:ff:ff:ff:ff
17: vif1.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
18: vif2.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
19: vif3.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
21: vif5.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
22: vif6.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
23: vif7.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff

--------8<---------

# iptables -L
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

--------8<---------

# iptables -t nat -L
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

--------8<---------

# grep . /proc/sys/net/bridge/*
bridge-nf-call-arptables:1
bridge-nf-call-ip6tables:1
bridge-nf-call-iptables:1
bridge-nf-filter-vlan-tagged:1


--------8<---------

# ifconfig
br133     Link encap:Ethernet  HWaddr 00:07:E9:11:1F:40
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:507 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:22908 (22.3 KiB)  TX bytes:0 (0.0 b)

br140     Link encap:Ethernet  HWaddr 00:07:E9:11:1F:41
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:371 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:32482 (31.7 KiB)  TX bytes:0 (0.0 b)

br148     Link encap:Ethernet  HWaddr 00:00:5A:72:A6:B6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:72 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:2178 (2.1 KiB)  TX bytes:0 (0.0 b)

br149     Link encap:Ethernet  HWaddr 00:00:5A:72:A6:B7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9307 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:429002 (418.9 KiB)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:00:5A:72:A6:B6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6553 errors:0 dropped:0 overruns:0 frame:0
          TX packets:509 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:797897 (779.1 KiB)  TX bytes:60294 (58.8 KiB)
          Interrupt:19 Memory:da000000-0

eth0.148  Link encap:Ethernet  HWaddr 00:00:5A:72:A6:B6
          UP BROADCAST RUNNING PROMISC SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:319 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6586 (6.4 KiB)  TX bytes:25137 (24.5 KiB)

eth1      Link encap:Ethernet  HWaddr 00:00:5A:72:A6:B7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2043643 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1035066 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:705998064 (673.2 MiB)  TX bytes:96745247 (92.2 MiB)

eth2      Link encap:Ethernet  HWaddr 00:07:E9:11:1F:40
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61031 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4293121 (4.0 MiB)  TX bytes:18848725 (17.9 MiB)
          Base address:0x3000 Memory:de280000-de2a0000

eth3      Link encap:Ethernet  HWaddr 00:07:E9:11:1F:41
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3592 errors:0 dropped:0 overruns:0 frame:0
          TX packets:721 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:245986 (240.2 KiB)  TX bytes:91955 (89.7 KiB)
          Base address:0x3040 Memory:de2a0000-de2c0000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2884 (2.8 KiB)  TX bytes:2884 (2.8 KiB)

veth0     Link encap:Ethernet  HWaddr 00:AA:00:01:33:01
          inet addr:192.168.133.1  Bcast:192.168.133.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55923 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3401417 (3.2 MiB)  TX bytes:18054002 (17.2 MiB)

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:100714 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55923 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18053834 (17.2 MiB)  TX bytes:3401417 (3.2 MiB)

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:721 errors:0 dropped:0 overruns:0 frame:0
          TX packets:506 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:86359 (84.3 KiB)  TX bytes:45726 (44.6 KiB)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:132 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif3.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:95 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif5.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:95 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif6.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1029258 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2036727 errors:0 dropped:427 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:86030327 (82.0 MiB)  TX bytes:704959580 (672.3 MiB)

vif7.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:383 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:26717 (26.0 KiB)  TX bytes:7648 (7.4 KiB)

--------8<---------

# cat /proc/net/sk98lin/eth0

Detailed statistic for device eth0
=======================================

Board statistics

Card name                      SK-9E22 10/100/1000Base-T Dual Port Server 
Adapter
Vendor/Device ID               1148/9e00
Card type (Bit)                64
Active Port                    A
Preferred Port                 A
Interrupt Moderation           disabled
Bus type                       PCI-Express
Bus width (Lanes)              4
Driver version                 8.24.1.3 (01)
Driver release date            Aug-09-2005
Hardware revision              v1.2
Temperature (C)                29.00
Temperature (F)                84.00
Voltage PCI (V)                0.000
Voltage PCI-IO (V)             0.000
Voltage VMAIN (V)              0.000
Voltage VAUX (V)               0.000
Voltage Core 1V2 (V)           0.000
Voltage PHY 1V5 (V)            0.000
Voltage PHY 2V5 (V)            0.000

Receive statistics

Received bytes                 85506
Received packets               768
Receive errors                 0
Receive dropped                0
Received multicast             469

Transmit statistics

Transmitted bytes              58040
Transmitted packets            476
Transmit errors                0
Transmit dropped               0
Transmit collisions            0

--------8<---------


# lspci -vvt
-+-[0000:80]-+-00.0  nVidia Corporation CK804 Memory Controller
 |           +-01.0  nVidia Corporation CK804 Memory Controller
 |           +-0a.0  nVidia Corporation CK804 Ethernet Controller
 |           \-0e.0-[0000:81-85]--
 +-[0000:08]-+-0a.0-[0000:09]----04.0  Marvell Technology Group Ltd. 
MV88SX5081 8-port SATA I PCI-X Controller
 |           +-0a.1  Advanced Micro Devices [AMD] AMD-8131 PCI-X IOAPIC
 |           +-0b.0-[0000:0a]--+-04.0  Marvell Technology Group Ltd. 
MV88SX5081 8-port SATA I PCI-X Controller
 |           |                 +-09.0  Intel Corporation 82546EB Gigabit 
Ethernet Controller (Copper)
 |           |                 \-09.1  Intel Corporation 82546EB Gigabit 
Ethernet Controller (Copper)
 |           \-0b.1  Advanced Micro Devices [AMD] AMD-8131 PCI-X IOAPIC
 \-[0000:00]-+-00.0  nVidia Corporation CK804 Memory Controller
             +-01.0  nVidia Corporation CK804 ISA Bridge
             +-01.1  nVidia Corporation CK804 SMBus
             +-02.0  nVidia Corporation CK804 USB Controller
             +-02.1  nVidia Corporation CK804 USB Controller
             +-04.0  nVidia Corporation CK804 AC'97 Audio Controller
             +-06.0  nVidia Corporation CK804 IDE
             +-07.0  nVidia Corporation CK804 Serial ATA Controller
             +-08.0  nVidia Corporation CK804 Serial ATA Controller
             +-09.0-[0000:01]--+-04.0  nVidia Corporation NV5M64 [RIVA TNT2 
Model 64/Model 64 Pro]
             |                 \-05.0  Texas Instruments TSB43AB22/A 
IEEE-1394a-2000 Controller (PHY/Link)
             +-0a.0  nVidia Corporation CK804 Ethernet Controller
             +-0e.0-[0000:02]----00.0  SysKonnect SK-9Exx 10/100/1000Base-T 
Adapter
             +-18.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
             +-18.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Address Map
             +-18.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
             +-18.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
             +-19.0  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
             +-19.1  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Address Map
             +-19.2  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
             \-19.3  Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.candelatech.com/pipermail/vlan/attachments/20051122/040cc4ab/attachment-0001.htm

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux