the_oliver Posted November 18, 2008 Share Posted November 18, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/133208-two-network-nics-on-different-vlans/ Share on other sites More sharing options...
trq Posted November 18, 2008 Share Posted November 18, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/133208-two-network-nics-on-different-vlans/#findComment-692983 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.