配置图示:
配置效果:
PC0/PC1 ping通 PC2
配置步骤:
0> 关闭路由器动态域名解析
enable
config t
no ip domain-lookup
1> 默认路由配置
ip route 0.0.0.0 0.0.0.0 下一跳(路由器的出口目的端)
2> 查看路由表(C为直达路由,S为静态路由,S*为默认路由)
show ip route
###################
S 192.168.1.0/24 [1/0] via 192.168.5.2
S 192.168.2.0/24 [1/0] via 192.168.5.2
C 192.168.5.0/24 is directly connected, Serial9/0
C 192.168.6.0/24 is directly connected, FastEthernet8/0