子网及路由配置
1. 实验拓扑图:
下图中标注了各个接口,以及IP地址的设置,可以更加方便的操作实验。
2. 路由器的基本配置:
2.1> R1路由器的基本配置:
configure terminal
interface f0/0
ip address 192.168.10.1 255.255.255.224
no shutdown
interface f1/0
ip address 202.100.10.1 255.255.255.252
no shutdown
注:1>截图中输入的命令大都是简写;
2> 当配置第二个接口时,出现 IP addresses may not be configured on L2 links.时,可在接口下输入no switchport 解决.
2.2> R2路由器的基本配置: