Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@TestgeraetWA860RE:~# ifconfig
- bat0 Link encap:Ethernet HWaddr 0A:9F:86:82:EB:5B
- inet6 addr: fe80::89f:86ff:fe82:eb5b/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:5075 errors:0 dropped:0 overruns:0 frame:0
- TX packets:883 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1912725 (1.8 MiB) TX bytes:126496 (123.5 KiB)
- br-mesh Link encap:Ethernet HWaddr 0A:9F:86:82:EB:5B
- inet6 addr: fe80::f4f2:6dff:fe42:e618/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:1328 errors:0 dropped:0 overruns:0 frame:0
- TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:101636 (99.2 KiB) TX bytes:2762 (2.6 KiB)
- eth0 Link encap:Ethernet HWaddr F4:F2:6D:42:E6:18
- UP BROADCAST MULTICAST MTU:1532 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:1000
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- Interrupt:4
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:21 errors:0 dropped:0 overruns:0 frame:0
- TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1908 (1.8 KiB) TX bytes:1908 (1.8 KiB)
- w2ap Link encap:Ethernet HWaddr F6:F2:6D:42:E6:18
- inet6 addr: fe80::f4f2:6dff:fe42:e618/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:854 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2677 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:123898 (120.9 KiB) TX bytes:1734099 (1.6 MiB)
- w2mesh Link encap:Ethernet HWaddr F4:F2:6D:42:E6:18
- inet6 addr: fe80::f6f2:6dff:fe42:e618/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1532 Metric:1
- RX packets:49960 errors:0 dropped:127 overruns:0 frame:0
- TX packets:14545 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:7580518 (7.2 MiB) TX bytes:2113976 (2.0 MiB)
- root@TestgeraetWA860RE:~# cat /etc/network.tl-wa860re
- WANDEV=eth0
- SWITCHDEV=eth0
- CLIENT_PORTS=""
- WAN_PORTS=""
- BATMAN_PORTS=""
- . /etc/network.mode
- CLIENTIF="w2ap"
- ETHMESHMAC=
- ROUTERMAC=
- uci set network.$SWITCHDEV=interface
- uci set network.$SWITCHDEV.ifname=$SWITCHDEV
- uci set network.mesh.ifname="bat0"
- if [ "$ETHMODE" = "WAN" ] ; then
- ## Activate for WAN:
- echo "net.ipv6.conf.$WANDEV.accept_ra_defrtr = 1" >> /etc/sysctl.conf
- echo "net.ipv6.conf.$WANDEV.accept_ra_pinfo = 1" >> /etc/sysctl.conf
- echo "net.ipv6.conf.$WANDEV.autoconf = 1" >> /etc/sysctl.conf
- echo "net.ipv6.conf.$WANDEV.accept_ra_rtr_pref = 1" >> /etc/sysctl.conf
- uci set network.wan.ifname=$WANDEV
- elif [ "$ETHMODE" = "CLIENT" ] ; then
- ## Activate Client:
- CLIENTIF="w2ap eth0"
- uci set network.mesh.ifname="bat0 $SWITCHDEV"
- else
- ## Activate BATMAN:
- uci set network.ethmesh.ifname="$SWITCHDEV"
- fi
- root@TestgeraetWA860RE:~# cat /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 interface 'w2mesh'
- option mtu '1532'
- option proto 'batadv'
- option mesh 'bat0'
- config interface 'mesh'
- option type 'bridge'
- option auto '1'
- config interface 'wan'
- option proto 'dhcp'
- option ifname 'eth1'
- config interface 'ethmesh'
- option mtu '1532'
- option proto 'batadv'
- option mesh 'bat0'
- config interface 'bat'
- option ifname 'bat0'
- option mtu '1500'
- root@TestgeraetWA860RE:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement