Hi,

I have a very simple network configuration:

root@WL-500gP:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
option enable   1

config switch_vlan eth0_9
option device "eth0"
option vlan 9
option ports "0t 1t 2t 3t 4t 5t"

#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.9"
option proto static
option ipaddr 10.10.10.253
option netmask 255.255.255.240
option gateway 10.10.10.254

root@WL-500gP:~#


As you can see, physical interface eth0.9 is associated with interface
configuration section "lan" and interface type is set to "bridge". IPv4
parameters are set manually.

1) Is this "option type bridge" meant to bridge(put interfaces to same
broadcast domain) radio interface defined in /etc/config/wireless file with
the VLAN interface defined in "option ifname" line?

2) How does bridge understand that he should answer when someone sends
packets to 10.10.10.253? I guess this bridge does not work like a switch
which does not check IP header when forwarding traffic? Instead, each frame
passing through the bridge is processed and if IPv4 destination is
10.10.10.253, then router will know that this packet was destined to it?



regards,
Martin
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to