当前位置:网站首页>Static routing assignment of network reachable and telent connections

Static routing assignment of network reachable and telent connections

2022-07-07 12:26:00 Miracle_ ze

 Insert picture description here

1. Subnet partition

There are requirements R1-R5 For LAN 192.168.1.0/24, Plus the loopback needs and needs 6 Net segment , That is, borrow the network bit 3 position .
R5 To R6 The network segment of is private ,R6 Represents all other network segments, which is replaced by loopback .
Divide 6 Network segment reasons :
        R1-R5 For a LAN , Divide all backbone roads into one network segment , The loopback of each server is considered as a network segment , Then divide the divided network segment .
 Insert picture description here
 Insert picture description here

2.IP Address command example

[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.1.1 255.255.255.252

3. Configuration loopback interface command example

[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1  30

4.IP Address assignment , And configure the loopback interface

R1

 Insert picture description here

R2

 Insert picture description here

R4

 Insert picture description here

R5

 Insert picture description here

R6

 Insert picture description here

5. to R3 Conduct DHCP Service configuration , Simultaneous configuration IP Address

r3 Of DHCP Service configuration

[r3]dhcp enable  ---  Turn on DHCP The server 

[r3]ip pool a
Info: It's successful to create an IP address pool.
[r3-ip-pool-a]
---  establish IP Address pool 

[r3-ip-pool-a]network 192.168.1.97 mask  27
[r3-ip-pool-a]gateway-list 192.168.1.97
[r3-ip-pool-a]dns-list 114.114.114.114 8.8.8.8
---  To configure IP Address pool 

 Enter the interface view 
[r3-GigabitEthernet0/0/2]dhcp select global 
 Select global configuration 

 Insert picture description here
Be careful :PC Choose dhcp Get dynamic ip Options for pass Ipconfig obtain dhcp Address
 Insert picture description here

6.R1-R5 You can visit R6 The loopback of =》 Network wide accessibility 【 Consider at the same time R4-R5 Priority routing 】

To facilitate matching, use the default route to complete , For the required route, it is better to statically configure individual routes
Default route :

[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.18 ---  Configure the default route 

Empty interface routing

[r4]ip route-static 192.168.1.128 28 NULL 0

Priority modification 【 The default priority of routing is 60, The higher the priority, the lower 】

[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.22 preference 61    Floating static routing 

Detailed configuration :

1.R1

 Insert picture description here

2.R2

 Insert picture description here

3.R3

 Insert picture description here

4.R4

 Insert picture description here

5.R5

 Insert picture description here

7. send r6 telent r5 Actual connection r1

r1 Turn on aaa

[R1-aaa]local-user panxi privilege level 15 password  cipher 123456
[R1-aaa]local-user panxi service-type telnet
[R1-aaa]q
[R1-ui-vty0]authentication-mode aaa

R5 mapping

[r5]int g 0/0/1
[r5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 inside 192.168.1.1 23

R6 Connect

<r6>telnet 56.1.1.1
原网站

版权声明
本文为[Miracle_ ze]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130618062524.html