Basic IP Routing Configuration
149
17.6 Examples
17.6.1 Basic Static IP Routing Example
Figure 17-1 shows an Internetwork consisting of three routers, a SmartNode 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 SmartNode 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
Internetwork with three routers and four networks
The necessary routing-table entries for the scenario described are listed below.
SN>
enable
SN#
configure
SN(cfg)#
context ip router
SN(ctx-ip)[router]#
route 10.1.5.10 255.255.255.255 172.16.40.2
SN(ctx-ip)[router]#
route 10.2.0.0 255.255.0.0 172.17.100.2
SN>
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
17-1:
Software Configuration Guide Release 2.10, Revision 1.00
Summary of Contents for SmartWare Release 2.10
Page 2: ...2 Legal Notice Software Configuration Guide Release 2 10 Revision 1 00...
Page 15: ...Terms and Definitions 15 Software Configuration Guide Release 2 10 Revision 1 00...
Page 218: ...218 PPP Configuration no shutdown Software Configuration Guide Release 2 10 Revision 1 00...
Page 272: ...272 Tone Configuration Software Configuration Guide Release 2 10 Revision 1 00...