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

Simple Application of dhcp

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Lab Topology:

Experimental demand

Configure routing gateway routing configure dhcp service, network interconnection configure remote access

Lab step: configure gateways for 2 routed interfaces, which are:

Interface gigabitethernet 0/0 ip:192.168.1.254 255.255.255.0

Interface gigabitethernet 0go 2 ip:192.168.2.254 255.255.255.0 configure routed dhcp service

First address pool: Router (config) # ip dhcp pool dhcp1

Router (dhcp-config) # network 192.168.1.0 255.255.255.0

Router (dhcp-config) # default-router 192.168.1.254

Second address pool: Router (config) # ip dhcp pool dhcp2

Router (dhcp-config) # network 192.168.2.0 255.255.255.0

Router (dhcp-config) # default-router 192.168.2.254

Enable the DHCP service

Router (config) # service dhcp configure remote access:

Router (config) # enable password 123 (configuration of plaintext passwords to enter privileged mode, remote access to the switch, routing must be configured)

Router (config) # line vty 0 2 (open 3 remote access ports 0 1 2)

Router (config-line) # password 1234 (remote access password)

Router (config-line) # loginPc machine access ip address mode modified to dhcp dynamic acquisition verification: open the PC to check if there is an ip address

Ping Test, ping 192.168.1.254

Ping 192.168.2.1

As shown in the picture

Remote access routing

Pc1:telnet 192.168.1.254 or pc2:telnet 192.168.2.254

As shown in the figure:

Successful configuration of the experiment

Lab questions and summary when configuring dhcp, finally remember to turn on dhcp service (service dhcp) remote access switch or route, you must configure a privileged mode password (password plaintext password, secret ciphertext password)

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

Servers

Wechat

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

12
Report