Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@a:~# cat /etc/config/batman-adv
- config mesh 'bat0'
- option interfaces 'eth0_2'
- root@a:~# 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 'lan'
- option type 'bridge'
- option proto 'static'
- option ipaddr '10.254.130.178'
- option netmask '255.255.0.0'
- option accept_ra '1'
- option ifname 'eth0.1 bat0'
- config switch
- option name 'eth0'
- option reset '1'
- option enable_vlan '1'
- config switch_vlan
- option device 'eth0'
- option vlan '1'
- option ports '0t 1 3 4'
- config switch_vlan
- option device 'eth0'
- option vlan '2'
- option ports '0t 2t'
- config switch_port
- option pvid '2'
- option port '2'
- config interface 'eth0_2'
- option ifname 'eth0.2'
- option proto 'none'
- option mtu '1528'
- config interface 'bat0'
- option ifname 'bat0'
- option proto 'none'
- option mtu '1500'
- root@a:~# batctl o
- [B.A.T.M.A.N. adv 2012.2.0, MainIF/MAC: eth0.2/f8:d1:11:54:50:f9 (bat0)]
- Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ...
- No batman nodes in range ...
- root@a:~# batctl bl
- disabled
- root@a:~# brctl show
- bridge name bridge id STP enabled interfaces
- br-lan 8000.f8d1115450f9 no eth0.1
- wlan0
- bat0
- root@a:~# ifconfig
- bat0 Link encap:Ethernet HWaddr 22:83:70:69:C3:0B
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:283 errors:0 dropped:26 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 B) TX bytes:26053 (25.4 KiB)
- br-lan Link encap:Ethernet HWaddr F8:D1:11:54:50:F9
- inet addr:10.254.130.178 Bcast:10.254.255.255 Mask:255.255.0.0
- inet6 addr: fe80::fad1:11ff:fe54:50f9/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:704 errors:0 dropped:0 overruns:0 frame:0
- TX packets:416 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:65422 (63.8 KiB) TX bytes:66494 (64.9 KiB)
- eth0 Link encap:Ethernet HWaddr F8:D1:11:54:50:F9
- inet6 addr: fe80::fad1:11ff:fe54:50f9/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:615 errors:0 dropped:0 overruns:0 frame:0
- TX packets:1331 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:574629 (561.1 KiB) TX bytes:143572 (140.2 KiB)
- Interrupt:5
- eth0.1 Link encap:Ethernet HWaddr F8:D1:11:54:50:F9
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:301 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 B) TX bytes:28240 (27.5 KiB)
- eth0.2 Link encap:Ethernet HWaddr F8:D1:11:54:50:F9
- inet6 addr: fe80::fad1:11ff:fe54:50f9/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:615 errors:0 dropped:0 overruns:0 frame:0
- TX packets:1022 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:563559 (550.3 KiB) TX bytes:109352 (106.7 KiB)
- root@a:~# batctl ll all ; batctl l
- [4294926086] Sending own packet (originator f8:d1:11:54:50:f9, seqno 825689268, TQ 255, TTL 50, IDF off, ttvn 2) on interface eth0.2 [f8:d1:11:54:50:f9]
- [4294927066] Sending own packet (originator f8:d1:11:54:50:f9, seqno 825689269, TQ 255, TTL 50, IDF off, ttvn 2) on interface eth0.2 [f8:d1:11:54:50:f9]
- [4294928046] Sending own packet (originator f8:d1:11:54:50:f9, seqno 825689270, TQ 255, TTL 50, IDF off, ttvn 2) on interface eth0.2 [f8:d1:11:54:50:f9]
- root@a:~# batctl td eth0.2 -p1
- 21:04:18.784492 BAT f8:d1:11:54:50:f9: OGM IV via neigh f8:d1:11:54:50:f9, seq 825689268, tq 255, ttvn 2, ttcrc 54337, ttl 50, v 14, flags [...F.], length 26
- 21:04:18.918908 BAT f8:d1:11:3b:78:df: OGM IV via neigh f8:d1:11:3b:78:df, seq 644031917, tq 255, ttvn 3, ttcrc 38490, ttl 50, v 14, flags [...F.], length 42
- 21:04:19.764398 BAT f8:d1:11:54:50:f9: OGM IV via neigh f8:d1:11:54:50:f9, seq 825689269, tq 255, ttvn 2, ttcrc 54337, ttl 50, v 14, flags [...F.], length 26
- 21:04:19.898897 BAT f8:d1:11:3b:78:df: OGM IV via neigh f8:d1:11:3b:78:df, seq 644031918, tq 255, ttvn 3, ttcrc 38490, ttl 50, v 14, flags [...F.], length 42
- 21:04:20.744420 BAT f8:d1:11:54:50:f9: OGM IV via neigh f8:d1:11:54:50:f9, seq 825689270, tq 255, ttvn 2, ttcrc 54337, ttl 50, v 14, flags [...F.], length 26
- 21:04:20.898856 BAT f8:d1:11:3b:78:df: OGM IV via neigh f8:d1:11:3b:78:df, seq 644031919, tq 255, ttvn 3, ttcrc 38490, ttl 50, v 14, flags [...F.], length 42
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement