Jump to content

Two network nics, on different VLANS.


the_oliver

Recommended Posts

Hello,

 

I need to set up a server with two different network nics, each on a different vlan.

The resion is that one is an internal network, where most of the traffic will come from.  The other is an external network, used for remote management and updates.

 

The important thing is that the box cannot route traffic from one vLan to another - but still be accessed from each vlan.

 

Can any one point me in the right direction as to dealing with the routing table for this please?

 

Many Thanks.

Link to comment
https://forums.phpfreaks.com/topic/133208-two-network-nics-on-different-vlans/
Share on other sites

The important thing is that the box cannot route traffic from one vLan to another - but still be accessed from each vlan.

 

Linux wont automatically route traffic from one nic to another unless its told to, so don't tell it to. All you need do is setup your nics with a valid ip address per lan.

 

eg (A Debian /etc/netowork/interfaces example):

 

auto lo
iface lo inet loopback

# lan
auto eth1
iface eth1 inet static
    address 192.168.10.100
    netmask 255.0.0.0
    network 192.168.10.255
    gateway 192.168.10.1

# wan
auto eth2
iface eth2 inet static
    address 203.168.191.71
    netmask 255.0.0.0
    network 203.168.191.255

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.