tomeshnet / meshstream

Live video stream with a distributed file system over a physical mesh network
GNU General Public License v3.0
22 stars 4 forks source link

VLAN Configuration for Prototype #11

Open darkdrgn2k opened 6 years ago

darkdrgn2k commented 6 years ago

Here is the persistent config in /etc/network/interfaces

IP addresses are just an example, no ip addresses are needed for cjdns to work.

For debugging i set 10.1.1.1 and 10.2.2.1 on the mesh1 and mesh2 network on the librerouter for testing

auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

auto eth0.2
iface eth0.2 inet static
    address 10.1.1.2
    netmask 255.255.255.0
    vlan-raw-device eth0

auto eth0.3
iface eth0.3 inet static
   address 10.2.2.2
   netmask 255.255.255.0
   vlan-raw-device eth0

once you make the change you can bring up interfaces without rebooting by using

ifup eth0.2
ifup eth0.3