Vlan routing – NETGEAR 7000 Series Managed Switch User Manual

Page 54

Advertising
background image

NETGEAR 7000 Series Managed Switch Administration Guide Version 7.2

7-4

IP Routing Services

v1.0, May 2008

Example #2: Enabling Routing for Ports on the Switch

Use the following commands to enable routing for ports on the switch. The default link-level
encapsulation format is Ethernet. Configure the IP addresses and subnet masks for the ports.
Network directed broadcast frames will be dropped and the maximum transmission unit (MTU)
size will be 1500 bytes.

VLAN Routing

You can configure 7000 Series Managed Switch with some ports supporting VLANs and some
supporting routing. You can also configure it to allow traffic on a VLAN to be treated as if the
VLAN were a router port.

When a port is enabled for bridging (the default) rather than routing, all normal bridge processing
is performed for an inbound packet, which is then associated with a VLAN. Its MAC Destination
Address (DA) and VLAN ID are used to search the MAC address table. If routing is enabled for
the VLAN and the MAC DA of an inbound unicast packet is that of the internal bridge-router
interface, the packet will be routed. An inbound multicast packet will be forwarded to all ports in
the VLAN, plus the internal bridge-router interface if it was received on a routed VLAN.

Since a port can be configured to belong to more than one VLAN, VLAN routing might be
enabled for all of the VLANs on the port, or for a subset. VLAN Routing can be used to allow
more than one physical port to reside on the same subnet. It could also be used when a VLAN
spans multiple physical networks, or when additional segmentation or security is required.

(Netgear Switch) #config

(Netgear Switch) (Config)#interface 1/0/2

(Netgear Switch) (Interface 1/0/2)#routing

(Netgear Switch) (Interface 1/0/2)#ip address 192.150.2.1 255.255.255.0

(Netgear Switch) (Interface 1/0/2)#exit

(Netgear Switch) (Config)#interface 1/0/3

(Netgear Switch) (Interface 1/0/3)#routing

(Netgear Switch) (Interface 1/0/3)#ip address 192.150.3.1 255.255.255.0

(Netgear Switch) (Interface 1/0/3)#exit

(Netgear Switch) (Config)#interface 1/0/5

(Netgear Switch) (Interface 1/0/5)#routing

(Netgear Switch) (Interface 1/0/5)#ip address 192.150.5.1 255.255.255.0

(Netgear Switch) (Interface 1/0/5)#exit

(Netgear Switch) (Config)#exit

Advertising