Answer the question
In order to leave comments, you need to log in
What needs to be added to Ubuntu Server so that remote branches see central local addresses?
Hello,
the provider provides L2 VPN for the central point and 2 branches via a radio channel. From the provider in the Center there is a patch cord, in which there are 3 vlans at the output: 101 and 102 for branches and 100 for the central point. Need help in parsing vlans on Ubuntu Server 14 with two network. The provider's antenna enters eth0, the wire goes from eth1 to an unmanaged switch.
It is necessary that each branch sees three addresses in the central network:
10.33.2.1 - Server For the Program
10.33.2.249 - proxy for the Internet
192.168.5.2 - shared folder
Vlans are pulled up on Ubuntu: xs apt-get install vlan
that: modprobe 8021q
Content /etc/network/interfaces:
auto eth0
iface eth0 inet static
address 10.33.2.240
netmask 255.0.0.0
auto vlan100
iface vlan100 inet static
address 192.168.100.1
netmask 255.255.255.0
vlan_raw_device eth0
auto vlan101
iface vlan101 inet static
address 192.168.101.1
netmask 255.255.255.0
vlan_raw_device eth0
auto vlan102
iface vlan101 inet static
address 192.168.101.1
netmask 255.255.255.0
vlan_raw_device eth0
up route add -net 192.168.101.0/24 gw 10.33.2.241 eth0
up route add -net 192.168.102.0/24 gw 10.33.2.241 eth0
auto eth1
iface eth1 inet static
address 10.33.2.241
netmask 255.0.0.0
gateway 10.33.2.249
ifup vlan100
ifup vlan101
ifup vlan102
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question