Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- source /etc/network/interfaces.d/*
- # loopback network interface
- auto lo
- iface lo inet loopback
- # built-in ethernet port
- auto eno1
- iface eno1 inet manual
- up ip link set eno1 up
- up ip link set eno1 promisc on
- down ip link set eno1 promisc off
- down ip link set eno1 up
- auto eno1.137
- iface eno1.137 inet manual
- vlan-raw-device eno1
- # USB ethernet port
- auto enx0050b65bc27a
- iface enx0050b65bc27a inet manual
- # batman-adv mesh portal interface
- auto bat0
- iface bat0 inet manual
- pre-up /usr/local/sbin/batctl routing_algo BATMAN_IV
- pre-up /usr/local/sbin/batctl if add enx0050b65bc27a
- hwaddress ether c0:3f:d5:63:96:77
- up ip link set enx0050b65bc27a up
- up ip link set enx0050b65bc27a promisc on
- post-up /usr/local/sbin/batctl orig_interval 500
- post-up /usr/local/sbin/batctl ap_isolation 0
- post-up /usr/local/sbin/batctl bridge_loop_avoidance 1
- post-up /usr/local/sbin/batctl distributed_arp_table 0
- post-up /usr/local/sbin/batctl aggregation 0
- post-up /usr/local/sbin/batctl bonding 0
- post-up /usr/local/sbin/batctl fragmentation 1
- post-up /usr/local/sbin/batctl network_coding 0
- post-up /usr/local/sbin/batctl multicast_mode 0
- down ip link set enx0050b65bc27a promisc off
- down ip link set enx0050b65bc27a down
- post-up echo 127 > /sys/devices/virtual/net/bat0/mesh/hop_penalty
- # a VLAN to trunk through the mesh
- auto bat0.137
- iface bat0.137 inet manual
- vlan-raw-device bat0
- # LAN bridge (customer traffic)
- auto br-lan
- iface br-lan inet static
- bridge_ports eno1 bat0
- hwaddress ether c0:3f:d5:63:96:76
- mtu 1500
- address 10.10.0.222
- netmask 255.255.0.0
- gateway 10.10.0.2
- dns-nameservers 8.8.8.8
- # a VLAN to trunk through the mesh
- auto br-lan.137
- iface br-lan.137 inet static
- vlan-raw-device br-lan
- bridge_ports eno1.137 bat0.137
- address 172.16.137.2
- netmask 255.255.255.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement