openwrt and debian network
ยท 4 mins read
openwrt
/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
config interface 'lan'
option proto 'static'
option ipaddr '192.168.2.200'
option netmask '255.255.255.0'
option gateway '192.168.2.1'
option _orig_ifname 'eth0'
option _orig_bridge 'true'
option force_link '0'
option type 'bridge'
option stp '1'
option ifname 'eth0 eth1'
option dns '192.168.1.1'
option delegate '0'
option ip6assign '64'
config interface 'VPN'
option ifname 'ipsec0'
option proto 'static'
option ipaddr '10.10.10.1'
option netmask '255.255.255.0'
config interface 'lan6'
option proto 'dhcpv6'
option ifname '@lan'
option reqprefix 'auto'
debian
/etc/network/interfaces
- openwrt
- debian