CCNA第四天(路由器远程连接,手动添加路由表)
来源:互联网 发布:世宗大王级驱逐舰知乎 编辑:程序博客网 时间:2024/06/10 19:24
一.路由器远程连接
1.1拓扑结构
1.2使用命令
(config)# username 名字 password 密码(config)# line vty 0 4(config)# login local
1.3IP配置
1.4路由器设置
Router(config)#int f0/0Router(config-if)#ip add 192.168.1.254 255.255.255.0Router(config-if)#no shRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#username taiyuan paRouter(config-if)#username taiyuan password 111Router(config)#line vty 0 4Router(config-line)#login localRouter(config-line)#^ZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#wrBuilding configuration...[OK]Router#
1.5连接效果
1.6注意事项
- 路由器不设密码的话远程不可登陆
二.手动添加路由表
2.1拓扑结构
2.2使用命令
静态路由协议
(config)# IP route 目标网络 子网掩码 下一跳地址# show ip route 查看路由表
2.3IP,网段配置
路由器
2.4实验思路
- 先设置网
- 分配IP
- 给路由器设置网关
- 手动添加路由表
(config)#ip route 目的网络 掩码 下一跳地址
- 查询路由表
# show ip route
2.5路由器配置
Router0
Router(config)#int f0/0Router(config-if)#ip add 192.168.1.254 255.255.255.0Router(config-if)#no shutdown Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#int f0/1Router(config-if)#ip add 192.168.2.1 255.255.255.252Router(config-if)#no shutdown Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upRouter(config-if)#ip route 192.168.3.0 255.255.255.252 192.168.2.2Router(config)#ip route 192.168.4.0 255.255.255.252 192.168.2.2Router(config)#^ZRouter#%SYS-5-CONFIG_I: Configured from console by console///*当我们把所有的路由表全部*/Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet0/0Router#Router#
Router1
Router(config)#int f0/0Router(config-if)#ip add 192.168.2.2 255.255.255.252Router(config-if)#no shutdown Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#int f0/1Router(config-if)#ip add 192.168.3.1 255.255.225.252Router(config-if)#no shRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upRouter(config-if)#ip route 192.168.1.0 255.255.255.0 192.168.2.1Router(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2Router(config)#^ZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#wrBuilding configuration...[OK]Router#
Router2
Router(config)#int f0/0Router(config-if)#ip add 192.168.3.2 255.255.255.252Router(config-if)#no shRouter(config-if)#no shutdown Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#int f0/1Router(config-if)#ip add 192.168.4.254 255.255.255.0Router(config-if)#no shutdown Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#Router(config-if)#ip route 192.168.1.0 255.255.255.0 192.168.3.1Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1Router(config)#^ZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#Router#wrBuilding configuration...[OK]
2.6添加情况
///*当路由表全部添加完毕,则显示下面*/Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setS 192.168.1.0/24 [1/0] via 192.168.3.1S 192.168.2.0/24 [1/0] via 192.168.3.1 192.168.3.0/30 is subnetted, 1 subnetsC 192.168.3.0 is directly connected, FastEthernet0/0C 192.168.4.0/24 is directly connected, FastEthernet0/1Router#
2.7连接情况
阅读全文
0 0
- CCNA第四天(路由器远程连接,手动添加路由表)
- CCNA第四天(路由器)
- CCNA实验十 通过路由器实现vlan间路由(单臂路由)
- CCNA学习笔记三 路由器开启DHCP、配置静态路由表
- CCNA第四天实验(rip,eigrp,ospf)
- 路由器端口映射以及远程连接
- 宿舍远程连接-路由器端口映射
- cisco 命令行(静态路由 配置)CCNA
- 路由器连接、静态路由配置实例
- 路由器,远程连接,FTP,个人网站配置(转)
- Windows 手动添加路由的方法
- CCNA(新版)-ipv6默认路由、静态路由配置实验
- CCNA第五天(静态路由,默认路由,时钟频率)
- 路由器静态路由配置 两个路由通过serial连接
- CCNA路由器及通信
- 远程连接添加 3389
- (4)配置路由器的路由表(静态)
- (4)配置路由器的路由表(静态)
- 44-扑克牌的顺序
- java线上服务问题排查
- 接口面试
- js函数执行先后顺序
- 2017.07.20
- CCNA第四天(路由器远程连接,手动添加路由表)
- 20. Valid Parentheses
- XYNU—ACM暑假集训第一次测试
- SpeechClassifier API 与端点检测
- Android View
- python的可变与不可变数据类型
- Spring Boot使用mybatis 入门
- Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
- C# string类型和byte[]类型相互转换