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

Configuration of static and default rout

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

Share

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

I. configuration of static routes

The following experiment configures the topology diagram

Experimental goal: to configure static routes to achieve interworking across the network

1. Configure router R1

Enter interface f0max 0, configure IP, and turn it on.

Enter interface f0max 1, configure IP, and turn it on.

Set up a static route.

Conf t

Int f0/0

Ip address 192.168.20.1 255.255.255.0

No shut

Int f0/1

Ip add 192.168.10.1 255.255.255.0

No shut

Exit

Ip route 192.168.30.0 255.255.255.0 192.168.20.2

View the routing table of PC1

Do show ip route

2. Configure router R2

Enter interface f0max 0, configure IP, and turn it on.

Enter interface f0max 1, configure IP, and turn it on.

Set up a static route.

Conf t

Int f0/0

Ip address 192.168.20.2 255.255.255.0

No shut

Int f0/1

Ip add 192.168.30.1 255.255.255.0

No shut

Exit

Ip route 192.168.10.0 255.255.255.0 192.168.20.1

View the routing table of PC2

Do show ip route

3. Configure the IP address and gateway of PC1

Ip 192.168.10.10 192.168.10.1

4. Configure the IP address and gateway of PC2

Ip 192.168.30.30 192.168.30.1

5. Test the interworking between PC1,PC2.

Ping 192.168.10.10

6 set the route pattern of R1 as the default route

7. Check the connection of PC1\ PC2

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