思科模拟器实验--路由选择原则
作者:快盘下载 人气:拓扑图
配置命令
R1
enable erase startup-config //清除保存配置 reload //重启设备 conf t hostname R1 int f 0/0 ip add 10.1.1.1 255.255.255.0 no shutdown exit int f 1/0 ip add 40.1.1.1 255.255.255.0 no shutdown exit int f 2/0 ip add 1.1.1.254 255.255.255.0 no shutdown exit ip route 4.4.4.0 255.255.255.0 10.1.1.2 ip route 0.0.0.0 0.0.0.0 40.1.1.2
R2
enable conf t hostname R2 int f 0/0 ip add 10.1.1.2 255.255.255.0 no shutdown exit int f 1/0 ip add 20.1.1.1 255.255.255.0 no shutdown exit int f 2/0 ip add 2.2.2.254 255.255.255.0 no shutdown exit int f 3/0 ip add 50.1.1.1 255.255.255.0 no shutdown exit ip route 0.0.0.0 0.0.0.0 10.1.1.1 router ospf 100 router-id 2.2.2.2 network 20.1.1.0 0.0.0.255 area 0 network 2.2.2.0 0.0.0.255 area 0 default-information originate //路由引入 exit router rip version 2 no auto-summary network 50.0.0.0 int f 4/0 ip add 60.1.1.1 255.255.255.0 no shutdown ip ospf cost 1 exit router ospf 100 network 60.1.1.0 0.0.0.255 area 0
R3
enable conf t hostname R3 int f 0/0 ip add 30.1.1.1 255.255.255.0 no shutdown exit int f 1/0 ip add 20.1.1.2 255.255.255.0 no shutdown exit int f 2/0 ip add 3.3.3.254 255.255.255.0 no shutdown exit router ospf 100 router-id 3.3.3.3 network 20.1.1.0 0.0.0.255 area 0 network 30.1.1.0 0.0.0.255 area 0 network 3.3.3.0 0.0.0.255 area 0
R4
enable conf t hostname R4 int f 0/0 ip add 30.1.1.2 255.255.255.0 no shutdown exit int f 1/0 ip add 40.1.1.2 255.255.255.0 no shutdown exit int f 2/0 ip add 4.4.4.254 255.255.255.0 no shutdown exit int f 3/0 ip add 50.1.1.2 255.255.255.0 no shutdown exit router ospf 100 router-id 4.4.4.4 network 30.1.1.0 0.0.0.255 area 0 network 40.1.1.0 0.0.0.255 area 0 network 4.4.4.0 0.0.0.255 area 0 exit router rip version 2 no auto-summary network 50.0.0.0 network 4.0.0.0 int f 4/0 ip add 60.1.1.2 255.255.255.0 no shutdown ip ospf cost 1 exit router ospf 100 network 60.1.1.0 0.0.0.255 area 0
实验结果
R1
R2
R3
R4
Ping
加载全部内容