
QTECH
Software Configuration Manual
6-83
6.3.2
Application Environment of Static Routing
Before configuring a static route, you need to know the following concepts :
1)
Destination address and mask
In the
ip route
command, an IPv4 address is in dotted decimal format and a mask dotted decimal format.
2)
Next hop address
While configuring a static route, you can specify next hop address. The next hop address can not be a local
interface IP address; otherwise, the route configuration will not take effect.
In fact, all the route entries must have a next hop address. When forwarding a packet, a router first searches
the routing table for the route to the destination address of the packet. The system can find the corresponding link
layer address and forward the packet only after the next hop address is specified.
QTECH QSW-3900 is a GE Intelligent Routing Switch based on ASIC technology which maintains a layer 3
transmission routing table to designatethe next hop address and related information which can be dynamically learnt
and manually configured. Static routing is the route manually designated to some address.
6.4 Static routing configuration list
·
Add/delete static route
·
Display route table information
6.4.1
Add/delete static route
Use this command to ad a route table item to designate the next hop transmission address when
communication with some address. Destination address, netmask and next hop address must be designated. If the
destination address and mask are all 0, the added route is defaulted route.
ip route
ip-dest mask-dest nexthop
Example :
QTECH(config)#ip route 192.168.0.100 255.255.255.255 10.11.0.254
Add a host route to 192.168.0.100 with the hop address being 10.11.0.254
QTECH(config)#ip route 192.168.0.100 255.255.255.255 10.11.0.254
Delete host route to 192.168.0.100, the next hop address may or may not inputted, if it is input, it must be
the same as that in real route table :
QTECH(config)#no ip route 192.168.0.100 255.255.255.255
6.4.2
Display route table information
Use following commands to display existed route table information or specified route.
Display all static route :
show ip route static
Example :
QTECH(config)#show ip route static
Display system core route :
QTECH(config)#show ip route
Display system core route from 192.168.0.1 to 192.168.0.255
QTECH(config)#show ip route 192.168.0.100 255.255.255.0