CCNA实验---- 静态路由


wKioL1NMyL6zTJy5AAERiHpVeW0777.jpg        


实验步

1.基本配置

Router>enable

Router#configure terminal

Router(config)#hostname R1

R1(config)#no ip domain-lookup

R1(config)#line console 0

R1(config-line)#logging synchronous

R1(config-line)#exec-timeout 0 0

R1(config-line)#exit


2.在R1上配置接口IP地址和时钟频率(DCE端)

R1(config)#int s1/0

R1(config-if)#ip address 20.0.0.1255.255.255.0

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#int fa0/1

R1(config-if)#ip address 10.0.0.1255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#exit

3. 在R2上配置接口IP地址

R2(config)#

R2(config)#ints1/0

R2(config-if)#ip address 20.0.0.2255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#int fa0/1

R2(config-if)#ip address 30.0.0.1255.255.255.0

R2(config-if)#no shutdown


4.在R1和R2上配置静态路由

R1(config)#ip route 30.0.0.1 255.255.255.020.0.0.2

R2(config)#ip route 10.0.0.1 255.255.255.020.0.0.1

5.主机1ping主机2测试

wKiom1NMyFSAoqK8AAHpFZ7-Xe8449.jpg



你可能感兴趣的:(接口,IP地址,Address)