Welcome to our community

Host Computer Services    hostcomputers.infopop.cc    Forums  Hop To Forum Categories  UNIX Archive    Connecting Linux to vlans

Read-Only Read-Only Topic
Go
New
Find
Notify
Tools
-star Rating Rate It!  Login/Join 
Member
Posted
I need to set up a Linux server as a Web server running Apache. I want to connect it to an Ethernet switch which is configured with three VLANS. It is easy to connect the server so that it is accessable by one of the VLANS but not all three. Does anyone know how set it up so that each VLAN can access the WEB server.

Thanks
 
Posts: 41Report This Post
I should get out more.
Posted Hide Post
Hello Foobar
If you have Inter-Vlan routing between each of the Vlans you just need to configure the port connecting you Linux server into any one of the Vlans.

Without any routing set up between the VLANS it is going to be more difficult. The first option would be to set up 3 NICS and configure them into each VLAN using 3 ports on the switch. The better option would be to configure a port on the switch as an 802.1q trunk port and set up the NIC on the Linux system to use 802.1q trunking.

Configuring trunking on Linux may need a kernel configuration. Once the kernel is set up you can use vconfig to set up the configuration. There are plenty of references to vconfig if you do a search.

You may also need to set up ACL's on the Linux system using iptables to give some security.

D'bert


"Free will is an illusion. People always choose the perceived path of greatest pleasure"
 
Posts: 407Report This Post
Member
Posted Hide Post
Thanks for the info

There is inter Vlan routing between two of the Vlans but the is no routing on the third. I will try to configure the Linux system to use 802.1q tagging.

Cheers
Foobar
 
Posts: 41Report This Post
  Powered by Eve Community  

Read-Only Read-Only Topic

Host Computer Services    hostcomputers.infopop.cc    Forums  Hop To Forum Categories  UNIX Archive    Connecting Linux to vlans