Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CCNA Lab 2: manually establishing static routing tables

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

HQ > en

HQ > enable

HQ#conf t

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

HQ (config) # int e0Universe 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 e0bin1

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 Configured from console by console 38 Fran 30.401:% SYS-5-CONFIG_I: Configured from console by console

HQ#show ip route / / Show routing tabl

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 e0swap 1 / / put 10.1.10.16 in the routing table and communicate over e0max 1

HQ (config) # exi

HQ#

* Sep 14 16 Configured from console by console 59 race 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 (4amp 5), round-trip min/avg/max = 1-1-1 ms / / ping destination address

HQ#show ip route / / displays the modified routing table

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#

With the same configuration on another router Branch, you can access each other. Pay attention to the mask.

Related settings:

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

Important command: show ip route displays routing table

Ip route + ip address + mask manually set static routing table

Note: when setting up the static routing table manually using the ip route + ip address + mask command, the ip address should be written here at the arrow, not the local ip address.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report