ase wrote:Adze wrote:Have been playing with OpenWrt on the wndr3700 for a couple of days now and i'm running into a (for me) huge problem. I'm trying to setup multiple VLAN's on the switch. But as soon as i configure port 5 as 802.1q trunk, ip connectivity is lost. Did anyone ever succeed in adding a new "routed" VLAN?
Thank you.
How do you configure the vlans? With swconfig + command line or some other means of configuration? Could you provide an example what to do to lose the connectivity?
Can't tell you exactly what went wrong (or should i say, what i did wrong), but after giving it another shot the problem was gone. I do however ran into a new problem. I think it's WNDR3700 related...
I have two "wan" connections to two isp's. Using iproute2, i loadbalance between those isp's. During a tcp session, for unknown reason, the packet sequence number get reset. When a tcp session is established all packets should traverse the same wan interface during this connection. But this is not always happening, as it rarely changes sequence number. After this hickup has happend the connection between the two hosts is gone. Below is a tcpdump output of my lan interface and wan interface of the same session.
LAN:
01:26:35.296622 IP (tos 0x0, ttl 128, id 7712, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77cb (correct), ack 12580, win 251, length 5
01:26:35.478672 IP (tos 0x0, ttl 115, id 3236, offset 0, flags [DF], proto TCP (6), length 48)
by2msg4010818.phx.gbl.1863 > Saturnus.louwes.local.49743: Flags [P.], cksum 0x40c2 (correct), ack 3952, win 65450, length 8
01:26:35.678567 IP (tos 0x0, ttl 128, id 7715, offset 0, flags [DF], proto TCP (6), length 40)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [.], cksum 0x1927 (correct), ack 12588, win 251, length 0
01:27:19.475426 IP (tos 0x0, ttl 128, id 10472, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:19.975402 IP (tos 0x0, ttl 128, id 10534, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:20.575450 IP (tos 0x0, ttl 128, id 10557, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:21.775521 IP (tos 0x0, ttl 128, id 11239, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:24.175681 IP (tos 0x0, ttl 128, id 11249, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:28.975999 IP (tos 0x0, ttl 128, id 12017, offset 0, flags [DF], proto TCP (6), length 45)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x77be (correct), ack 12588, win 251, length 5
01:27:38.576587 IP (tos 0x0, ttl 128, id 16464, offset 0, flags [DF], proto TCP (6), length 40)
Saturnus.louwes.local.49743 > by2msg4010818.phx.gbl.1863: Flags [R.], cksum 0x1a19 (correct), seq 3957, ack 12588, win 0, length 0
WAN:
01:26:35.296801 IP (tos 0x0, ttl 127, id 7712, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79f2 (correct), ack 12580, win 251, length 5
01:26:35.478494 IP (tos 0x0, ttl 116, id 3236, offset 0, flags [DF], proto TCP (6), length 48)
by2msg4010818.phx.gbl.1863 > 192.168.31.65.49743: Flags [P.], cksum 0x42e9 (correct), ack 3952, win 65450, length 8
01:26:35.678744 IP (tos 0x0, ttl 127, id 7715, offset 0, flags [DF], proto TCP (6), length 40)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [.], cksum 0x1b4e (correct), ack 12588, win 251, length 0
#From here on it goes wrong (SEQ_number changed and wrong ACK). Looks like NATing goes bad.
#It even switched form outgoing interface...
01:27:19.475608 IP (tos 0x0, ttl 127, id 10472, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 2501110533, win 251, length 5
01:27:19.975592 IP (tos 0x0, ttl 127, id 10534, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 1, win 251, length 5
01:27:20.575633 IP (tos 0x0, ttl 127, id 10557, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 1, win 251, length 5
01:27:21.775728 IP (tos 0x0, ttl 127, id 11239, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 1, win 251, length 5
01:27:24.175878 IP (tos 0x0, ttl 127, id 11249, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 1, win 251, length 5
01:27:28.976192 IP (tos 0x0, ttl 127, id 12017, offset 0, flags [DF], proto TCP (6), length 45)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [P.], cksum 0x79e5 (correct), ack 1, win 251, length 5
01:27:38.576749 IP (tos 0x0, ttl 127, id 16464, offset 0, flags [DF], proto TCP (6), length 40)
192.168.31.65.49743 > by2msg4010818.phx.gbl.1863: Flags [R.], cksum 0x1c40 (correct), seq 5, ack 1, win 0, length 0
Any ideas ?
(Last edited by Adze on 8 Mar 2010, 19:27)