我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

CCNA实验二:手动建立静态路由表-创新互联

HQ>en

创新互联建站长期为上千客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为儋州企业提供专业的成都网站设计、成都网站建设,儋州网站改版等技术服务。拥有十年丰富建站经验和众多成功案例,为您定制开发。

HQ>enable

HQ#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

HQ(config)#int e0/0

HQ(config-if)#no shut

HQ(config-if)#no shutdown

HQ(config-if)#ip add

HQ(config-if)#ip address 172.16.1.100 255.255.255.248

HQ(config-if)#exi

HQ(config)#int e0/1

HQ(config-if)#no shu

HQ(config-if)#no shutdown

HQ(config-if)#ip ad

HQ(config-if)#ip add

HQ(config-if)#ip address 192.168.1.2 255.255.255.252

HQ(config-if)#exi

HQ(config)#exi

*Sep 14 16:38:30.401: %SYS-5-CONFIG_I: Configured from console by console

HQ#show ip route       //显示路由表

Codes: L - local, C - connected, S - static, 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

    i - IS-IS, su - IS-IS summary, 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 route, H - NHRP, l - LISP

    a - application route

    + - replicated route, % - next hop override

Gateway of last resort is not set

   172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks

C     172.16.1.96/29 is directly connected, Ethernet0/0

L     172.16.1.100/32 is directly connected, Ethernet0/0

   192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C     192.168.1.0/30 is directly connected, Ethernet0/1

L     192.168.1.2/32 is directly connected, Ethernet0/1

HQ#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

HQ(config)#ip route 10.1.10.16 255.255.255.240 e0/1 //将10.1.10.16放入路由表,通过e0/1通信

HQ(config)#exi

HQ#

*Sep 14 16:59:32.032: %SYS-5-CONFIG_I: Configured from console by console

HQ#ping 10.1.10.23

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.10.23, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms  //ping通目标地址

HQ#show ip route       //显示修改过的路由表

Codes: L - local, C - connected, S - static, 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

    i - IS-IS, su - IS-IS summary, 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 route, H - NHRP, l - LISP

    a - application route

    + - replicated route, % - next hop override

Gateway of last resort is not set

   10.0.0.0/28 is subnetted, 1 subnets

S     10.1.10.16 is directly connected, Ethernet0/1

   172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks

C     172.16.1.96/29 is directly connected, Ethernet0/0

L     172.16.1.100/32 is directly connected, Ethernet0/0

   192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C     192.168.1.0/30 is directly connected, Ethernet0/1

L     192.168.1.2/32 is directly connected, Ethernet0/1

HQ#

在另一台路由器Branch上进行相同配置,即可实现互相访问,注意掩码

相关设置:

HQ:    e0/1  192.168.1.2  255.255.255.252

    e0/0  172.16.1.100  255.255.255.248

Branch:  e0/1  192.168.1.1  255.255.255.0

    e0/0  10.1.10.23  255.255.255.240

重要命令:show ip route  显示路由表

    ip route + ip地址 +掩码  手工设置静态路由表

注:当使用 ip route + ip地址 +掩码  命令手工设置静态路由表时,此处ip地址应写箭头处地址,而非local ip地址。

CCNA实验二:手动建立静态路由表

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文题目:CCNA实验二:手动建立静态路由表-创新互联
当前地址:http://mswzjz.cn/article/dccjes.html

其他资讯