background image
262
Chapter 5
IP Routing
These commands configured serial 0 into network 172.16.20.0 and
Ethernet 0 into network 172.16.10.0. The show ip route command displays
the following:
2501A#sh ip route
[output cut]
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.20.0 is directly connected, Serial0
C 172.16.10.0 is directly connected, Ethernet0
2501A#
Notice that router 2501A knows how to get to networks 172.16.10.0 and
172.16.20.0. Router 2621A and Router 2501A can now communicate
because they are connected on the same LAN.
2501B Configuration
The configuration of 2501B is more of the same, except that you also
need to add the clock rate command to the data communication equip-
ment (DCE) interfaces connected to both serial interfaces. For more infor-
mation on the DCE interfaces and the clock rate command, please see
Chapter 4.
Router>en
Router#config t
Router(config)#hostname 2501B
2501B(config)#int e0
2501B(config-if)#ip address 172.16.30.1 255.255.255.0
2501B(config-if)#no shut
2501B(config-if)#int s0
2501B(config-if)#ip address 172.16.20.2 255.255.255.0
2501B(config-if)#clock rate 64000
2501B(config-if)#no shut
2501B(config-if)#int s1
2501B(config-if)#ip address 172.16.40.1 255.255.255.0
2501B(config-if)#clock rate 64000
2501B(config-if)#no shut
These commands configured the hostname and IP addresses as well as the
clock rate on the serial interfaces. The output of the following show ip
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com