码迷,mamicode.com
首页 > 其他好文 > 详细

DHCP中继实验(基础)

时间:2020-01-06 21:14:02      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:col   width   lan   splay   turn   zone   中继   display   color   

技术图片

[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中继实验(基础)

标签:col   width   lan   splay   turn   zone   中继   display   color   

原文地址:https://www.cnblogs.com/jiucai/p/12158425.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!