首页 > 其他 > 详细

华为DHCP interface

时间:2017-04-18 20:27:17      阅读:204      评论:0      收藏:0      [点我收藏+]

技术分享SW1关键配置如下:

dhcp enable


interface Vlanif10

 ip address 192.168.10.1 255.255.255.0

 dhcp select interface

#

interface Vlanif20

 ip address 192.168.20.1 255.255.255.0

 dhcp select interface

#

interface MEth0/0/1

#

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#


SW2关键配置如下:

interface Ethernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface Ethernet0/0/2

 port link-type access

 port default vlan 10

#

interface Ethernet0/0/3

 port link-type access

 port default vlan 20

#


结果验证:

技术分享


备注:如若获取DNS,则

interface vlanif 10

dhcp server dns-list 10.10.10.10

即可。

vlanif 20同理。

本文出自 “互联互通” 博客,请务必保留此出处http://jschinamobile.blog.51cto.com/11464420/1916964

华为DHCP interface

原文:http://jschinamobile.blog.51cto.com/11464420/1916964

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!