background image

SECN User Guide

to access the MPs for management in this configuration, it is necessary to configure a PC with a 
static address in the same range as the MPs, and attach via Ethernet cable or WiFi.
The default IP address assigned to the 

br-lan

 interface in the MPs is 10.130.1.20 which is unlikely 

to conflict with the default address range of commodity routers. 
If it is desired to have the MPs appear on the LAN, the 

br-lan

 IP address should be assigned 

accordingly during set up.
The address assigned to the 

br-lan

 interface for each MP must be changed to be unique, so that each 

device can provide a separate telephone number. This IP address assignment may be made by a 
number of methods including telephone IVR, web interface or manipulation of the 

/etc/config/network

 file.

5.2 Batman-Advanced Operation

Batman-advanced is a "OSI layer 2" routing protocol which is implemented as a kernel module in 
the Linux kernel. Since Linux 2.6.38 batman-advanced is an official part of Linux. 
When you assign at least one active physical network interface to batman-advanced, it will create 
the virtual 

bat0

 interface. In the SECN firmware 

ath0

 is assigned to the batman-advanced kernel 

module. 

ath0

 is the wireless interface operating in multipoint-to-multipoint mode (ad-hoc). 

Because batman-advanced operates entirely on MAC layer (OSI layer 2), 

ath0

 doesn't need any 

Layer 3 configuration. Only its Layer 2 MAC address is required. The MAC address is configured 
during production, so we don't need to configure it. All we need to do is make sure to switch

ath0

 on. To sum it up: 

ath0

 is the link-local transport interface for the batman-advanced mesh.

Batman-adv itself bridges all 

bat0

 interfaces in all the mesh devices to a big, smart, virtual switch. 

This means that all 

bat0

 interfaces in the mesh are link-local - even if they are multiple wireless 

hops away. 
Despite being virtual, 

bat0

 acts like a real, physical, network interface connected to a big switch. As 

such you can run all kinds of network protocols on it, like IPv4, IPv6, ARP, Zeroconf (yes, you can 
run mDNS on 

bat0

!), IPX – or whatever protocol that can communicate over a network interface 

that is connected link local (which means directly connected, like a straight Ethernet cable 
connected between two computers, or a bunch of computers connected to a switch).
In the SECN firmware the 

bat0

 interface itself is again assigned (or rather enslaved) to a bridge in 

each machine. 

bat0

 is part of the bridge named 

br-lan

, together with 

ath1

 and 

eth0

eth0

 is the LAN port of the MP. 

ath1

 is a access-point interface, operating as a master in WiFi 

infrastructure mode. (As opposed to a infrastructure client, like laptops or smartphones with a WiFi 
interface). 
Hence 

all 

eth0

 and 

ath1

 interfaces in 

all

 devices running the SECN firmware are part of 

one

 big 

wireless bridge. The 

ath0

 interface does the low level work to carry the traffic link-locally from hop 

to hop and batman-advanced takes care about the routes that the MAC packets have to take.

Note:

 It is not possible to add IP settings to an interface which is encapsulated in a bridge - you can 

only assign IP settings to the bridge interface itself. 

eth0

 is part of the bridge 

br-lan,

 together with 

ath1

bat0

 (the batman-advanced virtual interface, which is routed by the mesh routing protocol on 

MAC level). Hence you can not assign any IP settings to 

eth0

ath1

 or 

bat0 

 -  only to 

br-lan

.

SECN_UserGuideV1d6b

19

Summary of Contents for Mesh Potato

Page 1: ...SECN User Guide Mesh Potato Small Enterprise Campus Network User Guide SECN_UserGuideV1d6b 1...

Page 2: ...een possible without the contributions of many people associated with Village Telco In particular I would like to acknowledge the considerable contributions made by Elektra both in providing technical...

Page 3: ...up 10 Set the root Password 11 Set the br lan Bridge IP Address 12 Set the ath0 IP Address 13 4 4 Advanced Set up 14 Connecting to the MP 14 Set the MP Network Addresses 14 Set the ath0 IP Address 14...

Page 4: ...use of the data network as long as the pass phrase key is kept confidential If one or more of the MP devices is connected via its ethernet port to a LAN with a router DHCP server and internet access a...

Page 5: ...s after the wifi light starts to flash pick up the phone on the 21 MP check for dial tone and dial 22 The other phone should start to ring after a few seconds Repeat the other way around Step 4 Attach...

Page 6: ...etwork either by Ethernet cable or WiFi it will acquire an IP address from the router in exactly the same manner as if it was connected directly to the router The router address space must be managed...

Page 7: ...on assigned a static address in the same range as the MP devices and attached via Ethernet cable or WiFi to any MP device in the network When a workstation is attached to the network either by Etherne...

Page 8: ...g Ubuntu or other Linux distribution on your PC 1 Set up the potato flash application on your PC Download the potato flash file from http elektrad info download MESH POTATO potato flash Save the file...

Page 9: ...rv238 squashfs openwrt atheros vmlinux rv238 lzma Reading rootfs file openwrt atheros root rv238 squashfs with 3801088 bytes Reading kernel file openwrt atheros vmlinux rv238 lzma with 720896 bytes No...

Page 10: ...ntending to connect the mesh to a LAN you may choose to assign addresses from the LAN address space to the MP devices so that they will appear as static IP devices on the LAN In this case just set the...

Page 11: ...your PC to the MP device with an Ethernet cable Set up a network profile for the Ethernet port on your PC with Static IP 172 31 255 253 and Netmask 255 255 255 252 Point your browser to the MP Fallba...

Page 12: ...n click on the Save Apply button at the lower right of the page Once the password as been set and the change committed future logins will require the password to be entered In addition telnet connecti...

Page 13: ...of the MP device s bridge IP address If you are intending to connect the mesh to a LAN you may choose to assign addresses from the LAN address space to the MP devices so that they will appear as stat...

Page 14: ...vides a known fallback address that will work on any device The default setting for this IP address when the device is flashed is 10 10 1 20 and you may choose to change just the last octet of the add...

Page 15: ...ci set network br lan ipaddr 103 130 1 XXX Where xxx is unique to each MP uci commit network Edit the etc config network file config interface lan option type bridge option ifname eth0 bat0 ath1 optio...

Page 16: ...c hostapd conf file interface ath1 bridge br lan driver madwifi Edit BSSID as required ssid Mesh Potato AP country_code DE hw_mode g wpa 1 wpa_passphrase potato potato wpa_key_mgmt WPA PSK macaddr_acl...

Page 17: ...mysecret mysipprovider com b Add a new sipaccount section to define the account details sipaccount host sip mysipprovider com secret mysecret username myusername fromuser myusername insecure port invi...

Page 18: ...ter then all WiFi and Ethernet interfaces connected to the meshed MPs will have access to the LAN resources If there is a DHCP server running on the LAN eg in the router then devices configured as DHC...

Page 19: ...t interface for the batman advanced mesh Batman adv itself bridges all bat0 interfaces in all the mesh devices to a big smart virtual switch This means that all bat0 interfaces in the mesh are link lo...

Page 20: ...onfiguration includes several telephone extension numbers that allow interaction with the device using Interactive Voice Response IVR system These numbers include 2663 C O N F Configure the eth0 br la...

Page 21: ...SECN User Guide SECN_UserGuideV1d6b 21...

Reviews: