VLAN connecting to management vlan

managenetworkingvlan

I have a 3com 4200g switch. I have created 2 vlans and have the default management vlan1.

How would i connect the 2 vlans that i have created to the management vlan.

I assum that i am going to need some form of ip routing.

Best Answer

  1. Take a router and connect it to both VLANs (either with physically separate ports or with trunking).

  2. Give that router an IP address in each VLAN.

  3. For each VLAN, either make that router the default router for hosts in that VLAN, configure each host in the VLAN to use that router to reach IP addresses in other VLANs, configure the existing default router for that VLAN to use this router to reach hosts in other VLANs, or use some kind of dynamic routing protocol such as OSPF between all your routers.

This is called inter-VLAN routing.

Update: Your switch has limited inter-VLAN routing capabilities. But here's an example of how to set it up. Say you want the switch to route between VLAN 2, 192.168.1.0/24 and VLAN 3, 192.168.2.0/24. The switch's address on VLAN 2 will be 192.168.1.250 and the switch's address on VLAN 3 will be 192.168.2.1. The configuration would be:

interface vlan-interface 2
  ip address 192.168.1.250 255.255.255.0
!
interface vlan-interface 3
  ip address 192.168.2.1 255.255.255.0
!

Again though, this will only work if traffic on VLAN 2 devices that need to go to VLAN 3 devices goes to 192.168.1.250 and if traffic on VLAN 3 devices that need to go to VLAN 2 devices goes to 192.168.2.1. The switch can't route traffic it doesn't get.

So, in my example, devices on VLAN 3 could have 192.168.2.1 set as their default gateway. And the default gateway on VLAN 2 could be a router that knows to route packets bound for 192.168.2.0/24 to 192.168.1.250.

Also note that this will not make Internet access work unless the router that does your NAT knows to NAT for the IPs on the other VLANs. This is a complex enough configuration that you may wish to hire a consultant.