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 vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        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 proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0


#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp
r...@openwrt:~# /sbin/ifconfig -a
br-lan    Link 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.0    Link 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.1    Link 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)

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: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 Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan


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

Reply via email to