Manual - S3800-Series-Static-Route-Configuration
Manual - S3800-Series-Static-Route-Configuration
Page 1 of 5
Contents
Contents......................................................................................................................... 2
Chapter 1 Static Route Configuration....................................................................... 3
1.1 Preface..............................................................................................................3
1.2 Static Route Configuration............................................................................. 3
1.2.1 Configuring a Static Route...................................................................3
1.2.2 Adding/Deleting a Static Route...........................................................3
1.2.3 Displaying Routing Entries................................................................... 3
1.2.4 Configuration Examples........................................................................ 4
Page 2 of 5
Chapter 1 Static Route Configuration
1.1 Preface
This command displays the information relevant to the specified routing entry,
such as the next-hop address and route type. You can choose to view the r
outes to a specific destination address, all static routes, and all routes. By de
fault, all routes will be displayed.
Page 3 of 5
Table 1-3 Displaying static route configuration
! To add a route with the next-hop address as 10.11.0.254 to network segment 192.168.
0.100, run the following command:
Switch(config)#ip route 192.168.0.100 255.255.0.0 10.11.0.254
! To delete a route to network segment 192.168.0.100, run the following command:
Switch(config)#no ip route 192.168.0.100 255.255.0.0
! To delete all the static routes, run the following command:
Switch(config)#no ip route static all
! To display the ECMP routes to 192.168.0.100, run the following command:
Switch(config)#show ip route ecmp 192.168.0.100
! To display all the ECMP routes, run the following command:
Switch(config)#show ip route ecmp
! To display all the ECMP routes over RIP, run the following command:
Switch(config)#show ip route ecmp rip
! To display all the ECMP routes over OSPF, run the following command:
Switch(config)#show ip route ecmp ospf
! To display the routes to 192.168.0.100, run the following command:
Switch(config)#show ip route 192.168.0.100
! To display the information of all the routing tables, run the following command:
Switch(config)#show ip route
! To display the information of all the RIP routing tables, run the following command:
Switch(config)#show ip route rip
! To display the information of all the OSPF routing tables, run the following command:
Page 4 of 5
Switch(config)#show ip route ospf
Page 5 of 5