
Examples
199
IPLink Software Configuration Guide
17 • Basic IP routing configuration
Examples
Basic static IP routing example
Figure 32
shows an Internetwork consisting of three routers, an IPLink device in the middle, and the four
autonomous networks, with network addresses 10.1.5.0/16, 172.16.40.0/24, 172.17.100.0/24, and 10.2.5.0/
16. The IPLink shall be configured for the following IP routing scenario:
All packets for the Workstation with IP address 10.1.5.10 shall be forwarded to the next-hop router Calvin. All
packets for network 10.2.5.0/16 shall be forwarded to the next-hop router Hobbes.
Figure 32. Internetwork with three routers and four networks
The necessary routing-table entries for the scenario described are listed below.
IPLink>enable
IPLink#configure
IPLink(cfg)#context ip router
IPLink(ctx-ip)[router]# route 10.1.5.10 255.255.255.255 172.16.40.2
IPLink(ctx-ip)[router]# route 10.2.0.0 255.255.0.0 172.17.100.2
IPLink>show ip route
Routes of IP context 'router':
Status codes: * valid, U up, H host, G Gateway, L local, D default
Destination Nexthop Protocol Metric Flags Used
---------------------------------------------------------------------
* 127.0.0.1/32 local 0 LHG n/a
* 172.16.40.1/24 local 0 LHG n/a
* 172.17.100.1/24 local 0 LHG n/a
* 172.17.100.0/24 wan local 1 UL 0
* 172.16.40.0/16 lan local 1 UL 0
* 10.1.5.10/32 172.16.40.2 static 0 U 0
* 10.2.0.0/16 172.17.100.2 static 0 U 0
Node
IPLink
172.17.100.2/24
172.17.100.1/24
172.16.40.1/24
172.16.40.2/24
10.1.5.2/16
10.2.5.2/16
lan
wan
Calvin
Hobbes
Hub
Hub
10.1.5.10/16
Workstation