Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@TestgeraetWA860RE:~# ifconfig
- bat0 Link encap:Ethernet HWaddr A2:9B:4C:A4:D3:17
- inet6 addr: fe80::a09b:4cff:fea4:d317/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:5907 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2800 errors:0 dropped:5 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:7415232 (7.0 MiB) TX bytes:215151 (210.1 KiB)
- br-mesh 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:1500 Metric:1
- RX packets:393 errors:0 dropped:0 overruns:0 frame:0
- TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:29197 (28.5 KiB) TX bytes:13208 (12.8 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:2 errors:0 dropped:0 overruns:0 frame:0
- TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:288 (288.0 B) TX bytes:288 (288.0 B)
- 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:2718 errors:0 dropped:0 overruns:0 frame:0
- TX packets:5452 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:203333 (198.5 KiB) TX bytes:7477006 (7.1 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:15032 errors:0 dropped:4 overruns:0 frame:0
- TX packets:5358 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:8650649 (8.2 MiB) TX bytes:675689 (659.8 KiB)
- root@TestgeraetWA860RE:~# cat /etc/network.tl-wa860re
- WANDEV=eth0
- SWITCHDEV=eth0
- CLIENT_PORTS=""
- WAN_PORTS=""
- BATMAN_PORTS=""
- . /etc/network.mode
- CLIENTIF="w2ap"
- ETHMESHMAC=
- ROUTERMAC=w2mesh
- 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'
- option ifname 'bat0'
- option macaddr 'f4:f2:6d:42:e6:18'
- config interface 'wan'
- option proto 'dhcp'
- option ifname 'eth1'
- config interface 'ethmesh'
- option mtu '1532'
- option proto 'batadv'
- option mesh 'bat0'
- option ifname 'eth0'
- config interface 'bat'
- option ifname 'bat0'
- option mtu '1500'
- config interface 'eth0'
- option ifname 'eth0'
- root@TestgeraetWA860RE:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement