Basic IP routing

8.Configuring the default gateways allows the switch to send outbound traffic to the routers:

>> IP Interface 5#

../gw 1

(Select primary default gateway)

>> Default gateway

1# addr 205.21.17.1(Assign IP address)

>> Default gateway

1# ena

(Enable primary default gateway)

>> Default gateway

1# ../gw 2

(Select secondary default gateway)

>> Default gateway

2# addr 205.21.17.2 (Assign address)

>> Default gateway

2# ena

(Enable secondary default gateway)

9.Enable, apply, and verify the configuration.

>> Default gateway 2# ../fwrd

(Select the IP Forwarding Menu)

>> IP Forwarding# on

(Turn IP forwarding on)

>> IP

Forwarding# apply

(Make your changes active)

>> IP

Forwarding# /cfg/l3/cur

(View current IP settings)

10.Examine the resulting information. If any settings are incorrect, make the appropriate changes.

11.Save your new configuration changes.

>> IP Forwarding # save

(Save for restore after reboot)

Using VLANs to segregate broadcast domains

In the previous example, devices that share a common IP network are all in the same broadcast domain. If you want to limit the broadcasts on your network, you could use VLANs to create distinct broadcast domains. For example, as shown in the following procedure, you could create one VLAN for the client trunks, one for the routers, and one for the servers.

In this example, you are adding to the previous configuration.

1.Determine which switch ports and IP interfaces belong to which VLANs.

2.The following table adds port and VLAN information:

Table 22 Subnet routing example: Optional VLAN ports

VLAN

Devices

IP InterfaceSwitch PortVLAN #

 

 

 

 

 

1

First Floor Client Workstations

2

20

1

 

 

 

 

 

 

Second Floor Client Workstations

3

21

1

 

 

 

 

 

2

Primary Default Router

1

18

2

 

 

 

 

 

 

Secondary Default Router

1

19

2

 

 

 

 

 

3

Common Servers 1

4

1

3

 

 

 

 

 

 

Common Servers 2

4

2

3

 

 

 

 

 

3.Add the switch ports to their respective VLANs.

110