<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

R1  E0:192.168.3.1     S0:192.168.1.1

R2  E0:192.168.4.1     S1:192.168.1.2    S0:192.168.2.1

R3  E0:192.168.5.1     S1:192.168.2.2

 

 

 

 

 

 

 

Router>enable

Router#conf  t

Router(config)#host R1

R1 (config)#interface  Ethernet 0 

R1(config-if)#ip  address   192.168.3.1  255.255.255.0                 

R1(config-if)#no shutdown                                         

R1(config-if)#exit

R1(config)#int s0                                     进入s0端口

R1(config-if)#ip address  192.168.1.1  255.255.255.0      添加s0口的IP

R1(config-if)#clock rate 64000                          设置时钟

R1(config-if)#no  shutdown                              打开s0

R1(config-if)#exit

R1(config)#ip route  0.0.0.0  0.0.0.0    192.168.1.2   添加缺省路由

 

 

 

Router>en

Router#conf  t

Router(config)#host R2

R2(config)#int e0                                     进入e0端口

R2 (config-if)#ip add 192.168.4.1  255.255.255.0          添加e0口的IP

R2 (config-if)#no shutdown                            打开e0

R2 (config-if)#exit

R2 (config)#int s1                                     进入s1端口

R2 (config-if)#ip address  192.168.1.2  255.255.255.0      添加s1口的IP

R2 (config-if)#no shutdown                             打开s1t

R2 (config-if)#exit

R2 (config)#int s0

R2 (config-if)#ip address  192.168.2.1  255.255.255.0

R2 (config-if)#clock rate 64000

R2 (config-if)#band64

R2 (config-if)#no shutdown

R2 (config)# ip route  192.168.3.0   255.255.255.0   192.168.1.1   添加静态路由

R2 (config)# ip route  192.168.5.0   255.255.255.0   192.168.2.2   添加静态路由

 

 

 

 

Router>en

Router#conf t

Router(config)#host R3

R3(config)#int e0                                              进入e0端口

R3 (config-if)#ip address       192.168.5.1  255.255.255.0          添加e0口的IP

R3 (config-if)#no shutdown                                     打开e0

R3 (config-if)#exit

R3 (config)#int s1                                             进入s1端口

R3 (config-if)#ip address       192.168.2.2  255.255.255.0          添加s1口的IP

R3 (config-if)#no shutdown                                      打开s1t

R3 (config-if)#exit

R3 (config)#ip route   0.0.0.0   0.0.0.0    192.168.2.1             添加缺省路由