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

DHCP server automatically acquires IP address and gateway and DNS

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

Share

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

Steps (paste critical code (show running results) and related screenshots for requirements):

1、

RI Configuration:

Router >en

Router#configuration terminal

Router(config)#hostname R1

R2 configuration:

Router >en

Router#configuration terminal

Router(config)#hostname R2

R3 configuration:

Router >en

Router#configuration terminal

Router(config)#hostname R3

2、

R1 configuration:

R1(config)#interface GigabitEthernet 0/0

R1(config-if)#ip address 10.10.1.254 255.192.0.0

R1(config-if)#ip helper-address 20.20.16.253

R1(config)#interface GigabitEthernet 0/1

R1(config-if)#ip address 192.168.1.1 255.255.255.0

R1(config)#ip route 20.20.16.0 255.255.240.0 192.168.1.2

R1 (config)# ip route 30.30.30.28 255.255.255.252 192.168.2.2

R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.2

R3 configuration:

R3(config)#interface GigabitEthernet 0/0

R3(config-if)#ip address 192.168.2.2 255.255.255.0

R3(config)#interface GigabitEthernet 0/1

R3(config-if)#ip address 30.30.30.30 255.255.255.252

R3(config-if)#ip helper-address 20.20.16.253

R3(config)#ip route 10.0.0.0 255.192.0.0 192.168.2.1

R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1

R3(config)#ip route 20.20.16.0 255.255.240.0 192.168.2.1

Server configuration:

IP address of 20.20.16.253

255.255.240.0 subnet mask

20.20.16.254 gateway

DHCP address pool configuration:

10.10.10.10/10

10.0.0.0 network address

10.10.1.254 Gateway

7.7.7.7 DNS

255.192.0.0 subnet mask

20.20.20.20/20

20.20.16.0 Web address

20.20.16.254 gateway

255.255.240.0 subnet mask

8.8.8.8 DNS

30.30.30.30/30

30.30.30.28 network address

30.30.30.30 gateway

255.255.255.252 subnet mask

9.9.9.9 DNS

Automatically obtained host IP address:

PC1:10.0.0.1 255.192.0.0 10.10.1.254

PC4:20.20.16.1 255.255.240.0 20.20.16.254

PC5:30.30.30.29 255.255.255.252 30.30.30.30

3.R2 Configuration:

R2(config)#interface GigabitEthernet 0/0

R2(config-if)#ip address 192.168.1.2 255.255.255.0

R2(config)#interface GigabitEthernet 0/1

R2(config-if)#ip address 192.168.2.1 255.255.255.0

R2(config)#interface GigabitEthernet 0/2

R2(config-if)#ip address 20.20.16.254 255.255.240.0

R2(config)#ip route 10.0.0.0 255.192.0.0 192.168.1.1

R2(config)#ip route 30.30.30.28 255.255.255.252 192.168.2.2

Attachment: down.51cto.com/data/2367055

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