Layer 3 Virtual Switching

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

Hi,

Can anyone define what the above does?


InterVLAN routing?


Thanks

Photo of JeremyClarkson

JeremyClarkson

  • 1,010 Points 1k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Sumit Tokle

Sumit Tokle, Alum

  • 5,738 Points 5k badge 2x thumb
if you want to communicate between two different vlan, you have to enable the ip forwarding.
Photo of JeremyClarkson

JeremyClarkson

  • 1,010 Points 1k badge 2x thumb
can this be done on the X430?
Photo of Drew C.

Drew C., Community Manager

  • 39,442 Points 20k badge 2x thumb
No, the X430 is a layer 2 only switch and doesn't have any routing capabilities.
Photo of Kawawa

Kawawa, GTAC

  • 3,292 Points 3k badge 2x thumb
Layer 3 Virtual Switching is a fancy way of saying "This switch can be configured as a router".  So instead of dedicating a separate device (the router), you can set up your VLANs, assign their virtual interfaces IP addresses, turn on IP Forwarding, configure static router or a routing protocol, and you're good to go.  
Photo of JeremyClarkson

JeremyClarkson

  • 1,010 Points 1k badge 2x thumb

awesome how do you go about setting up static routes what are the commands?



Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 48,894 Points 20k badge 2x thumb
i.e. a static route to the network 10.10.10.0/24 via the interface 10.1.1.1

# configure iproute add 10.10.10.0 255.255.255.0 10.1.1.1
Photo of JeremyClarkson

JeremyClarkson

  • 1,010 Points 1k badge 2x thumb

thanks

for example I have a:

192.168.0.1/24 windows client on 'vlan1' with switch port 1 on access: interface 192.168.0.254

'vlan2' has 10.0.0.0/8 network with switch port 1 on trunk: interface 10.0.0.254

I want to ping clients on the 10.0.0.0 network from my windows client.



Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
ClassicD,

As long as the clients in each of those networks have the switch as their default gateway (192.168.0.254 for clients in vlan1 and 10.0.0.254 for clients in vlan2) you don't need to add static routes, because the switch knows how to route between those subnets. Just make sure routing is enabled with the command
enable ipforwarding


If the clients have a different default gateway (not the switch), then you will have to configure static routes in those external routers.

The router acting as default gateway in subnet 192.168.0.0/24 should have a route to 10.0.0.0/24 with 192.168.0.254 as next hop, while the router in subnet 10.0.0.0/24 should have a route to 192.168.0.0/24 pointing to 10.0.0.254 as next hop.