DHCP

Posted hehuanling

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DHCP相关的知识,希望对你有一定的参考价值。

技术分享图片

Sw2:

Vlan ba 10 20

Int e0/0/1

Port hy pvid vlan 10

Port hy un vlan 10

Int e0/0/2

Port hy pvid vlan 20

Port hy un vlan 20

Int g0/0/1

Port hy ta vlan 10 20

AR1:

Int g0/0/1.10

Ip add 192.168.10.1 24

Dot ter vid 10

Arp br en

Int g0/0/1.20

Ip add 192.168.20.1 24

Dot ter vid 20

Arp br en

Int g0/0/2

Ip add 192.168.100.2 24

Int g0/0/0

Ip add 12.0.0.1 24

Qu

Dhcp en

Ip pool vlan20

Network 192.168.20.0 ma 24

Gate 192.168.20.1

Dns 8.8.8.8

Int g0/0/1.10

Dhcp sel int

Int g0/0/1.20

Dhcp sel glo

qu

Ip route-s 23.0.0.0 24 12.0.0.2

Ip route-s 192.168.50.0 24 192.168.100.1

SW1:

Vlan ba 30 40 50 100

Int g0/0/3

Port hy pvid vlan 30

Port hy un vlan 30

Int g0/0/4

Port hy pvid vlan 40

Port hy un vlan 40

Int g0/0/5

Port hy pvid vlan 50

Port hy un vlan 50

Int g0/0/2

Port hy pvid vlan 100

Port hy un vlan 100

Int vlan 30

Ip add 192.168.30.1 24

Int vlan 40

Ip add 192.168.40.1 24

Int vlan 50

Ip add 192.168.50.1 24

Int vlan 100

Ip add 192.168.100.1 24

Qu

Dhcp en

Ip pool vlan40

Network 192.168.40.0 ma 24

Gate 192.168.40.1

Dns 8.8.8.8

Qu

Dhcp ser gr vlan50

Dhcp 23.0.0.3

qu

Int vlan 30

Dhcp sel int

Int vlan 40

Dhcp sel glo

Int vlan 50

Dhcp sel re

Dhcp re server-se vlan50

Qu

Ip route-s 0.0.0.0 0.0.0.0 192.168.100.2

AR2:

Int g0/0/1

Ip add 12.0.0.2 24

Int g0/0/0

Ip add 23.0.0.2 24

Qu

Ip route-s 192.168.50.0 24 12.0.0.1

AR3:

Int g0/0/1

Ip add 23.0.0.3 24

Qu

Ip route-s 0.0.0.0 0.0.0.0 23.0.0.2

Dhcp en

Ip pool vlan50

Netwo 192.168.50.0 ma 24

Gate 192.168.50.1

Dns 8.8.8.8

Qu

Int g0/0/1

Dhcp sel glo

 

以上是关于DHCP的主要内容,如果未能解决你的问题,请参考以下文章

那些你不得不知道的网络协议——DHCPDHCP中继VRRP

DHCP服务

关于各个协议

笔记 DHCP

DHCP原理和配置

DHCP原理及实验