U
U
ult1mate2016-02-09 09:50:01
ubuntu
ult1mate, 2016-02-09 09:50:01

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

Then the vlans are raised:
ifup vlan100
ifup vlan101
ifup vlan102

This is the entire existing setup. Client machines at branches on the 192.168.101.0/24 and 192.168.102.0/24 subnets. The gateways are 192.168.101.1 and 192.168.102.1. As planned, static routes on eth0 should send all packets to eth1, and eth1 with an IP address from the central network. But in fact, 192.168.x.1 is pinged from the branch machine, but eth1 is not pinged, and the client machine is pinged from Ubuntu.
What needs to be added so that branches see the central local addresses?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shaazz, 2016-02-09
@shaazz

auto vlan102
iface vlan101 inet static
address 192.168.101.1
netmask 255.255.255.0
vlan_raw_device eth0
apparently forgot to change 101 to 102 here?
ip_forward enabled?
firewall temporarily disabled for testing?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question