Re: [OpenWrt-Devel] r18259 only listens on vlans on wrt54gl? [SOLVED]

2009-11-22 Thread Timo Juhani Lindfors

I upgraded to 18459 and the problem went away. It was probably
https://dev.openwrt.org/ticket/6084

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] r18259 only listens on vlans on wrt54gl?

2009-11-21 Thread Timo Juhani Lindfors
Hi,

I have r18259 on WRT54GL. I tried to connect my laptop to it with

ip link set eth0 up
ip addr add 192.168.1.5/24 dev eth0
ping 192.168.1.1

but noticed that all arp replies come back prefixed with vlan 0, p
 0, according to tcpdump. After some googling I was able to figure
out that with

modprobe 8021q
vconfig eth0 0
ip addr add 192.168.1.5/24 dev eth0.0
ip link set eth0.0 up
ping 192.168.1.1

I can connect to the router. Any idea how I could configure the router
to not encapsulate all traffic inside vlan 0?

r...@openwrt:/etc/config# cat network
 VLAN configuration
config switch eth0
option vlan00 1 2 3 5*
option vlan14 5


 Loopback configuration
config interface loopback
option ifname   lo
option protostatic
option ipaddr   127.0.0.1
option netmask  255.0.0.0


 LAN configuration
config interface lan
option type bridge
option ifname   eth0.0
option protostatic
option ipaddr   192.168.1.1
option netmask  255.255.255.0


 WAN configuration
config interfacewan
option ifname   eth0.1
option protodhcp
r...@openwrt:~# /sbin/ifconfig -a
br-lanLink encap:Ethernet  HWaddr 00:1E:E5:45:DE:94
  inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:245 errors:0 dropped:0 overruns:0 frame:0
  TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:11314 (11.0 KiB)  TX bytes:11318 (11.0 KiB)

eth0  Link encap:Ethernet  HWaddr 00:1E:E5:45:DE:94
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:243 errors:0 dropped:0 overruns:0 frame:0
  TX packets:738 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:16568 (16.1 KiB)  TX bytes:255500 (249.5 KiB)
  Interrupt:4

eth0.0Link encap:Ethernet  HWaddr 00:1E:E5:45:DE:94
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:245 errors:0 dropped:0 overruns:0 frame:0
  TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:12294 (12.0 KiB)  TX bytes:11910 (11.6 KiB)

eth0.1Link encap:Ethernet  HWaddr 00:1E:E5:45:DE:94
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:591 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:240537 (234.8 KiB)

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:0 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:0 (0.0 B)  TX bytes:0 (0.0 B)

r...@openwrt:~# brctl show
bridge name bridge id   STP enabled interfaces
br-lan  8000.001ee545de94   no  eth0.0
r...@openwrt:~# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.1.0 0.0.0.0 255.255.255.0   U 0  00 br-lan


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] r18259 only listens on vlans on wrt54gl?

2009-11-21 Thread Timo Juhani Lindfors
ard a...@kwaak.net writes:
 It sounds like the switch in your wrt is configured wrongly.
 Can you try all other ports and see if you still get tagged
 traffic?

wrt54gl v1.1 physical port Internet
-

sends dhcp queries and does not reply to arp since it has no IP address.

19:20:44.619337 IP 0.0.0.0.68  255.255.255.255.67: BOOTP/DHCP, Request from 
00:1e:e5:45:de:94, length 361
19:20:44.652976 arp who-has 192.168.1.1 tell 192.168.1.5
19:20:45.652975 arp who-has 192.168.1.1 tell 192.168.1.5

I killed dhcp client and did ifconfig eth0.1 192.168.1.2. After that
it replies but encapsulates replies in vlan 1:

19:26:41.824972 arp who-has 192.168.1.2 tell 192.168.1.5
19:26:41.825282 vlan 1, p 0, arp reply 192.168.1.2 is-at 00:1e:e5:45:de:94
19:26:42.824976 arp who-has 192.168.1.2 tell 192.168.1.5
19:26:42.825288 vlan 1, p 0, arp reply 192.168.1.2 is-at 00:1e:e5:45:de:94

wrt54gl v1.1 physical ports 1, 2, 3 and 4
-

replies to arp requests but encapsulates replies in vlan 0:

19:22:12.253984 arp who-has 192.168.1.1 tell 192.168.1.5
19:22:13.252994 arp who-has 192.168.1.1 tell 192.168.1.5
19:22:13.253336 vlan 0, p 0, arp reply 192.168.1.1 is-at 00:1e:e5:45:de:94
19:22:14.269985 arp who-has 192.168.1.1 tell 192.168.1.5
19:22:14.270321 vlan 0, p 0, arp reply 192.168.1.1 is-at 00:1e:e5:45:de:94
19:22:15.269975 arp who-has 192.168.1.1 tell 192.168.1.5
19:22:15.270316 vlan 0, p 0, arp reply 192.168.1.1 is-at 00:1e:e5:45:de:94

 config switch eth0
 option vlan00 1 2 3 5*
 option vlan14 5

 Well, I keep wondering if that's the right config. It changes
 with each hardware release. In the sense that the ports are

openwrt-wrt54g-squashfs.8.09.1.bin release works and has identical
vlan options in that file.

 On the other hand: if a normale release does wrok (with the same
 network config), it just might be a bug in the scripts.
 You can determine the real settings in /proc/switch/eth0 or other
 way around.

r...@openwrt:/# find /proc/switch/eth0 -type f | xargs head
== /proc/switch/eth0/vlan/15/ports ==

== /proc/switch/eth0/vlan/14/ports ==

== /proc/switch/eth0/vlan/13/ports ==

== /proc/switch/eth0/vlan/12/ports ==

== /proc/switch/eth0/vlan/11/ports ==

== /proc/switch/eth0/vlan/10/ports ==

== /proc/switch/eth0/vlan/9/ports ==

== /proc/switch/eth0/vlan/8/ports ==

== /proc/switch/eth0/vlan/7/ports ==

== /proc/switch/eth0/vlan/6/ports ==

== /proc/switch/eth0/vlan/5/ports ==

== /proc/switch/eth0/vlan/4/ports ==

== /proc/switch/eth0/vlan/3/ports ==

== /proc/switch/eth0/vlan/2/ports ==

== /proc/switch/eth0/vlan/1/ports ==
4   5t  

== /proc/switch/eth0/vlan/0/ports ==
0   1   2   3   5t* 

== /proc/switch/eth0/version ==
0.02

== /proc/switch/eth0/driver ==
bcm53xx

== /proc/switch/eth0/reset ==
b
== /proc/switch/eth0/enable_vlan ==
1

== /proc/switch/eth0/enable ==
1

This output is exactly the same under my self-compiled versin and
released version.

 You are looking for which ports are tagged, and which are not.
 And in which vlans the ports are configured.

 Vlan id 0 is a very nasty one, because it actually is only used to
 tag l2 priority on your packets. Every normal switch will just
 prioritize and strip the tag ;-).

Aha! Could that also explain why the output of tcpdump -i eth0 -n
magically changes (stops showing vlan 0 prefix) when I do

vconfig add eth0 0

? Having a debug tool not show the real data that was received from
network worries me.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel