Google
  Web www.spinics.net

[VLAN] problem with basic topology

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


Andreas,

Have you done an ifconfig to see your interfaces listed ??

Maybe you need to add a eth0 with no vlan in order to keep those errors from
showing

It happened to me in a setup after i added an ip whith no vlan it stopped. 


Fernando Rodriguez
AITelecom
-----Mensaje original-----
De: vlan-bounces@xxxxxxxxxxxxxxx [mailto:vlan-bounces@xxxxxxxxxxxxxxx] En
nombre de Andreas S?bstad
Enviado el: Martes, 22 de Agosto de 2006 04:14 p.m.
Para: vlan@xxxxxxxxxxxxxxx
Asunto: [VLAN] problem with basic topology

Hi,
I'm trying to implement the following very basic topology:


box A:                        box B:
_______ eth0           eth0 _______
|          |_ _ _trunk _ _ _|           |
|______|                      |_______|

Both ethernetcards are 'PWLA8391GT (intel pro/1000 gt desktop adapter)'. 
The 'e1000' driver is used on both computers.
The trunk is a crossover-cable connecting the two nics directly.

Box A is runing debian etch(2.6.16-2-amd64-k8-smp)  and has been configured
with the following configuration:

 ip link set up dev eth0
 modprobe 8021q
 vconfig set_name_type VLAN_PLUS_VID_NO_PAD

 vconfig add eth0 2
 ip addr add dev vlan2 10.10.2.2/24 broadcast 10.10.2.255  ip link set dev
vlan2 up

 vconfig add eth0 3
 ip addr add dev vlan3 10.10.3.2/24 broadcast 10.10.3.255  ip link set dev
vlan3 up

 vconfig add eth0 4
 ip addr add dev vlan4 10.10.4.2/24 broadcast 10.10.4.255  ip link set dev
vlan4 up

 ip route add default via 10.10.2.1

Box B is running debian sarge(2.6.15-1-686) and has been configured with the
following configuration:

 ip link set up dev eth0
 modprobe 8021q
 vconfig set_name_type VLAN_PLUS_VID_NO_PAD

 vconfig add eth0 2
 ip addr add dev vlan2 10.10.2.1/24 broadcast 10.10.2.255  ip link set dev
vlan2 up

 vconfig add eth0 3
 ip addr add dev vlan3 10.10.3.1/24 broadcast 10.10.3.255  ip link set dev
vlan3 up

 vconfig add eth0 4
 ip addr add dev vlan4 10.10.4.1/24 broadcast 10.10.4.255  ip link set dev
vlan4 up


If I test the nics without  vlan they work perfectly. If I use them with the
above mentioned conf then eth0 on box a won't recive anything while eth0 on
box b is able to both transmitt and recive.


I did the following test:

on box a:

PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data.
 From 10.10.2.2 icmp_seq=1 Destination Host Unreachable  From 10.10.2.2
icmp_seq=2 Destination Host Unreachable  From 10.10.2.2 icmp_seq=3
Destination Host Unreachable

tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
22:47:43.081271 arp who-has 10.10.2.1 tell 10.10.2.2 22:47:44.080780 arp
who-has 10.10.2.1 tell 10.10.2.2 22:47:46.079810 arp who-has 10.10.2.1 tell
10.10.2.2
22:47:47.079327 arp who-has 10.10.2.1 tell 10.10.2.2
22:47:48.078966 arp who-has 10.10.2.1 tell 10.10.2.2

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan2, link-type EN10MB (Ethernet), capture size 96 bytes
22:48:34.087678 arp who-has 10.10.2.1 tell 10.10.2.2
22:48:35.087691 arp who-has 10.10.2.1 tell 10.10.2.2
22:48:36.087707 arp who-has 10.10.2.1 tell 10.10.2.2 22:48:38.087740 arp
who-has 10.10.2.1 tell 10.10.2.2

on box b:

tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
23:50:40.507796 arp reply 10.10.2.1 is-at 00:0e:0c:b3:9f:d6
23:50:41.507648 arp reply 10.10.2.1 is-at 00:0e:0c:b3:9f:d6
23:50:43.507542 arp reply 10.10.2.1 is-at 00:0e:0c:b3:9f:d6
23:50:44.507419 arp reply 10.10.2.1 is-at 00:0e:0c:b3:9f:d6

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan2, link-type EN10MB (Ethernet), capture size 96 bytes
22:52:11.076059 arp who-has 10.10.2.1 tell 10.10.2.2
22:52:12.076072 arp who-has 10.10.2.1 tell 10.10.2.2
22:52:14.076104 arp who-has 10.10.2.1 tell 10.10.2.2

If I do a 'cat /proc/net/dev' on box b I can see that data is being recived
and transmitted on eth0 and vlan2 .
If I do a ' cat /proc/net/dev' on box a I can only see data being
transmitted on eth0 and eth2. There is no reciveing and no dropping of
packages on the same interfaces. I have tested with another
crossover-cable: same result. I have tried also to assign static macaddr in
the arp table on both computers but  eth0  on  box a still wont recive
anything.


Anybody got any ideas on what I am doing wrong?



Best Regards

Andreas
_______________________________________________
Vlan mailing list
Vlan@xxxxxxxxxxxxxxx
http://www.candelatech.com/mailman/listinfo/vlan



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

Powered by Linux