DHCP中继实验(基础)
Posted jiucai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DHCP中继实验(基础)相关的知识,希望对你有一定的参考价值。
[R1]dis cu
#
sysname R1
#
undo info-center enable
#
dhcp enable
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher B3wPB^]SX$]@l3D+mKgUsY@#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
ip address 172.20.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.10.1.1 255.255.255.192
dhcp select relay
dhcp relay server-ip 172.20.1.2
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
[R2]display current-configuration
#
sysname R2
#
undo info-center enable
#
dhcp enable
#
ip pool pc1
gateway-list 10.10.1.1
network 10.10.1.0 mask 255.255.255.192
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher +*X%D|%Wg7:z9:%F`[a=WYR#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
ip address 172.20.1.2 255.255.255.0
dhcp select global
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
ip route-static 10.10.1.0 255.255.255.0 172.20.1.1
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
以上是关于DHCP中继实验(基础)的主要内容,如果未能解决你的问题,请参考以下文章