Jump to content

Two network nics, on different VLANS.


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.