cancel
Showing results for 
Search instead for 
Did you mean: 

VLAN Routing

VLAN Routing

ingatel
New Contributor
Hello,
I have problems when doing the vlan in the switches of the x440 G2 range. I want to do 3 vlan, for example from port 1 to 10 vlan1, from port 11 to 15 vlan 2 and from port 16 to 23 vlan 3. Port 24 wants it to connect my router. I have done the vlan but I can not configure port 24 to connect the router and have internet in the 3 vlan.
Can anyone tell me what commands I would have to put in order to make this small configuration?

Thank you

a greeting
14 REPLIES 14

ingatel
New Contributor
Thanks again for your reply.

I created the 4 vlan that you told me.
The problem that I find now that when configuring the ip to the vlan, I have to have different ip for each of them, and I want to have the same ip for all the vlan.

I have put these commands:

create vlan sofia
create vlan miki
create vlan router
create vlan classroom

configure vlan sofia tag 20
configure vlan miki tag 21
configure vlan router tag 22
configure vlan classroom tag 23


configure vlan Default delete ports all

configure sofia add port 24 tagged
configure miki add port 24 tagged
configure router add port 24 tagged
configure classroom add port 24 tagged

configure vlan sofia add port 1-10 untagged
configure vlan miki add port 11-15 untagged
configure vlan classroom add port 16-23 untagged

save



configure ipaddress router 192.168.1.1/24
enable ipforwarding router

Ronald_Dvorak
Honored Contributor
  • tag the 3 VLANs on the switch port#24 = VLAN trunk
  • configure a VLAN trunk on the router
  • configure 3 VLAN interfaces on the router
The command for the XOS is ...

configure add ports 24 tagged
configure add ports 24 tagged
configure add ports 24 tagged

Alexandr_P
Valued Contributor
You written "I have done the vlan but I can not configure port 24 to connect the router and have internet in the 3 vlan."

If you need 3 vlans with Internet you have to make 4 vlans with IP addresses (3 client vlans and 1 vlan for router), VLAN 4 have to be with IP from router's subnet and then you have to enable ipforwarding on all vlans.

Thank you!

ingatel
New Contributor
Alexandre, thank you for answering.

But I have some doubt.

If I do what you tell me, will not I have internet only in vlan 3?

what I want is to have internet in all vlan connecting port 24 to the router.

Sorry for my English, but I'm using the Google translator?.

Thank you

Alexandr_P
Valued Contributor
Hi!

You could simply make VLAN 3 with ports 16-24 (router and clients will be in same vlan).
Or make vlan 4 with IP from router's subnet, make vlan 3 with IP and enable ipforwarding in vlan 3 and 4.

Thank you!
GTM-P2G8KFN