Ticket #12186: network

File network, 939 bytes (added by mikejuni@…, 5 years ago)

network configuration

Line 
1
2config 'interface' 'loopback'
3        option 'ifname' 'lo'
4        option 'proto' 'static'
5        option 'ipaddr' '127.0.0.1'
6        option 'netmask' '255.0.0.0'
7
8# My network is of the following
9# network 172.16.67.96/255.255.255.224
10# Primary gateway 172.16.67.97 (another WRT router, router a)
11# This is a bridged network with the router a using STA with static ip. dhcp is disabled for this device.
12# The following config is my router b
13config 'interface' 'lan'
14        option 'ifname' 'eth0'
15        option 'type' 'bridge'
16        option 'proto' 'static'
17        option 'ipaddr' '172.16.67.99'
18        option 'netmask' '255.255.255.224'
19        option 'gateway' '172.16.67.97'
20        option 'dns' '172.16.67.97'
21        option 'accept_ra' '0'
22
23config 'interface' 'wan'
24        option 'ifname' 'eth1'
25        option 'proto' 'dhcp'
26        option 'auto' '0'
27
28config 'switch'
29        option 'name' 'eth0'
30        option 'reset' '1'
31        option 'enable_vlan' '1'
32
33config 'switch_vlan'
34        option 'device' 'eth0'
35        option 'vlan' '1'
36        option 'ports' '0 1 2 3 4'
37