尧图精选

实验十 静态和默认路由的基本配置(基于eNSP)

🕒 发布时间:2026/10/1 20:31:41 📁 来源:尧图网络
一、实验目的1、路由器的基本配置2、静态路由和默认路由的基本配置二、实验要求掌握配置静态路由的的方法并且掌握测试默认路由的方法。三、实验内容根据实验要求建立拓扑如下1、对路由器R1、R2和R3端口进行配置对R1:HuaweisysEnter system view, return user view with CtrlZ.[Huawei]undo info enaInfo: Information center is disabled.[Huawei]sysname R1[R1]int g0/0/1[R1-GigabitEthernet0/0/1]ip add 20.19.2.1 24[R1-GigabitEthernet0/0/1]int g0/0/0[R1-GigabitEthernet0/0/0]ip add 20.19.6.3 24[R1-GigabitEthernet0/0/0]int g0/0/2[R1-GigabitEthernet0/0/2]ip add 20.19.1.2 24对R2:HuaweisysEnter system view, return user view with CtrlZ.[Huawei]undo info enaInfo: Information center is disabled.[Huawei]sysname R2[R2]int g0/0/1[R2-GigabitEthernet0/0/1]ip add 20.19.3.1 24[R2-GigabitEthernet0/0/1]int g0/0/0[R2-GigabitEthernet0/0/0]ip add 20.19.2.2 24对R3:HuaweisysEnter system view, return user view with CtrlZ.[Huawei]undo info enaInfo: Information center is disabled.[Huawei]sysname R3[R3]int g0/0/0[R3-GigabitEthernet0/0/0]ip add 20.19.4.2 24[R3-GigabitEthernet0/0/0]int g0/0/1[R3-GigabitEthernet0/0/1]ip add 20.19.3.2 24此时拓扑之间无法ping通结果如下以PC4 ping 20.19.2.2 为例2、配置静态路由并查看各自的路由表R1:[R1]ip route-static 20.19.4.0 24 20.19.3.1[R1]ip route-static 20.19.3.0 24 20.19.2.2R2:[R2]ip route-static 20.19.4.0 24 20.19.3.2[R2]ip route-static 20.19.1.0 24 20.19.2.1[R2]ip route-static 20.19.6.0 24 20.19.2.1R3:[R3]ip route-static 20.19.2.0 24 20.19.3.1[R3]ip route-static 20.19.1.0 24 20.19.2.1[R3]ip route-static 20.19.6.0 24 20.19.2.13、测试拓扑连通性用PC1 ping PC4用PC4 ping PC24、在R1和R3上删除原有的静态路由设置默认路由[R1]undo ip route-static 20.19.4.0 24 20.19.3.1[R1]undo ip route-static 20.19.3.0 24 20.19.2.2[R1]ip route-static 0.0.0.0 0 20.19.2.2[R3]undo ip route-static 20.19.2.0 24 20.19.3.1[R3]undo ip route-static 20.19.1.0 24 20.19.2.1[R3]undo ip route-static 20.19.6.0 24 20.19.2.1[R3]ip route-static 0.0.0.0 0 20.19.3.15、测试PC间连通性用PC4 ping PC26、Telnet口令的基本配置和AAA认证对R1:HuaweisysEnter system view, return user view with CtrlZ.[Huawei]undo info enaInfo: Information center is disabled.[Huawei]sysname R1[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip add 20.19.1.1 24[R1-GigabitEthernet0/0/0]user-int vty 0 4[R1-ui-vty0-4]aut pasPlease configure the login password (maximum length 16):huashui[R1-ui-vty0-4]set aut pass cipher huashui[R1-ui-vty0-4]q[R1]aaa[R1-aaa]local-user admin pass cipher hello privilege level 3[R1-aaa]local-user admin service-type telnet[R1-aaa]user-interface vty 0 4[R1-ui-vty0-4]authentication-mode aaa[R1-ui-vty0-4]q对R2:HuaweisysEnter system view, return user view with CtrlZ.[Huawei]undo info enaInfo: Information center is disabled.[Huawei]sysname R2[R2]int g0/0/0[R2-GigabitEthernet0/0/0]ip add 20.19.1.2 24[R2-GigabitEthernet0/0/0]q[R2]qTelnet测试结果如下
上一篇/下一篇内容由系统自动关联 返回资讯列表 →