Show pagesourceOld revisionsBacklinksBack to top × Table of Contents Routing example: Bridged DMZ Router A Router B Routing example: Bridged DMZ Router A # /etc/config/network config switch 'eth0' option enable '1' config switch_vlan 'eth0_0' option device 'eth0' option vlan '0' option ports '0 5' config switch_vlan 'eth0_1' option device 'eth0' option vlan '1' option ports '4 5' config switch_vlan 'eth0_2' option device 'eth0' option vlan '2' option ports '1 2 3 5*' config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'wan' option ifname 'eth0.0' option proto 'pppoe' option username 'MikeRophone' option password 'fnord!' option keepalive '10' option defaultroute '1' config interface 'lan' option ifname 'eth0.2' option proto 'static' option ipaddr '192.168.2.1' option netmask '255.255.255.0' config interface 'dmz' option type 'bridge' option ifname 'eth0.0 eth0.1' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' # /etc/config/wireless config wifi-device 'wl0' option type 'broadcom' option channel '5' option disabled '0' config 'wifi-iface' option device 'wl0' option network 'dmz' option mode 'ap' option ssid 'HeartOfGold' option encryption 'psk2' option key 'Beeblebrox' # /etc/config/dhcp config dhcp 'lan' option interface 'lan' option start '100' option limit '50' option leasetime '12h' config dhcp 'dmz' option interface 'dmz' option start '100' option limit '50' option leasetime '12h' Router B # /etc/config/network config switch 'eth0' option enable '1' config switch_vlan 'eth0_0' option device 'eth0' option vlan '0' option ports '1 2 5' config switch_vlan 'eth0_1' option device 'eth0' option vlan '1' option ports '0 5' config switch_vlan 'eth0_2' option device 'eth0' option vlan '2' option ports '3 4 5*' config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'wan' option ifname 'eth0.2' option proto 'dhcp' option ipaddr '192.168.1.123' config interface 'lan' option ifname 'eth0.0' option proto 'static' option ipaddr '192.168.2.1' option netmask '255.255.255.0' config interface 'dmz' option type 'bridge' option ifname 'eth0.1 eth0.2' option proto 'static' option ipaddr '192.168.3.1' option netmask '255.255.255.0' # /etc/config/wireless config wifi-device 'wl0' option type 'broadcom' option channel '5' option disabled '0' config 'wifi-iface' option device 'wl0' option network 'wan' option mode 'sta' option ssid 'HeartOfGold' option encryption 'psk2' option key 'Beeblebrox' config 'wifi-iface' option device 'wl0' option network 'dmz' option mode 'ap' option ssid 'FreeBeer' option encryption 'none' # /etc/config/dhcp config dhcp 'lan' option interface 'lan' option start '100' option limit '50' option leasetime '12h' config dhcp 'dmz' option interface 'dmz' option start '100' option limit '50' option leasetime '12h' This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.OKMore information about cookies Last modified: 2020/12/02 03:30by vgaetera