HCIA作业

张开发
2026/4/15 9:46:22 15 分钟阅读

分享文章

HCIA作业
第一步将拓扑图分成三个架构 (学校内网运营商百度网络)再着眼于其中一个架构第二步 将学校内网分成两个部分1.二层交换机 2.三层路由器 【先配二层再做三层】2.1配置交换机1.创建VLAN2.接口划分VLANaccess链路连接终端终端无法处理802.1Q数据帧交换机1的代码system-view port-group 1 group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/24 port link-type access port default vlan 3 undo shutdown quit int g0/0/3 port default vlan 2 quit int g0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 quit save yAR2的代码system-view sysname AR2 int g0/0/0 ip address 192.168.1.254 255.255.255.0 undo shutdown int g0/0/1 ip address 10.1.1.1 255.255.255.252 undo shutdown int g0/0/2 ip address 10.1.1.5 255.255.255.252 undo shutdown ip route-static 0.0.0.0 0.0.0.0 10.1.1.2 ip route-static 0.0.0.0 0.0.0.0 10.1.1.6 preference 100 quit save yAR1的代码system-view sysname AR1 int g0/0/0 ip address 10.1.1.2 255.255.255.252 undo shutdown int g0/0/1 ip address 10.1.1.6 255.255.255.252 undo shutdown int g0/0/2 ip address 10.1.2.1 255.255.255.252 undo shutdown ip route-static 0.0.0.0 0.0.0.0 10.1.2.2 user-interface vty 0 4 authentication-mode password set authentication password simple admin123 user privilege level 3 quit save yAR3的代码system-view sysname AR3 int g0/0/0 ip address 10.1.2.2 255.255.255.252 undo shutdown int g0/0/1 ip address 10.1.3.1 255.255.255.252 undo shutdown int g0/0/2 ip address 3.3.3.254 255.255.255.0 undo shutdown rip 1 version 2 network 10.0.0.0 network 3.0.0.0 quit ip route-static 192.168.0.0 255.255.0.0 10.1.2.1 quit save yAR4的代码system-view sysname AR4 int g0/0/0 ip address 10.1.3.2 255.255.255.252 undo shutdown int g0/0/1 ip address 10.1.4.1 255.255.255.252 undo shutdown rip 1 version 2 network 10.0.0.0 quit save yAR5的代码system-view sysname AR5 int g0/0/0 ip address 10.1.4.2 255.255.255.252 undo shutdown int g0/0/1 ip address 10.1.5.1 255.255.255.252 undo shutdown rip 1 version 2 network 10.0.0.0 quit save yAR6的代码system-view sysname AR6 int g0/0/0 ip address 10.1.5.2 255.255.255.252 undo shutdown int g0/0/1 ip address 10.1.6.1 255.255.255.0 undo shutdown rip 1 version 2 network 10.0.0.0 quit save y最后检查 RIP在 AR1/AR3/AR4/AR5/AR6 上执行display rip peer display ip routing-table确保都能学到 192.168.1.0/24 和 192.168.3.0/24 的路由。所有都能ping通

更多文章