一台三层交换机,一台二层交换机,在二层交换机上划分多个vlan,在三层交换机上开启dhcp服务,二层交换机多个vlan怎么获取三层交换机上的dhcp服务
一台三层交换机,一台二层交换机,在二层交换机上划分多个vlan,在三层交换机上开启dhcp服务,二层交换机多个vlan怎么获取三层交换机上的dhcp服务
(0)
[H3C] dhcp enable //启用dhcp
[H3C]vlan 5
[H3C-vlan5]port GigabitEthernet 1/0/5 //划分vlan
[H3C-vlan5]quit
[H3C]vlan 6
[H3C-vlan6]port GigabitEthernet 1/0/6
[H3C-vlan6]quit
[H3C]vlan 7
[H3C-vlan7]port GigabitEthernet 1/0/7
[H3C-vlan7]quit
[H3C]interface vlan 5
[H3C-Vlan-interface5]ip address 192.168.5.254 255.255.255.0
[H3C-Vlan-interface5]quit
[H3C]interface vlan 6
[H3C-Vlan-interface6]ip address 192.168.6.254 255.255.255.0
[H3C-Vlan-interface6]quit
[H3C]interface vlan 7
[H3C-Vlan-interface7]ip address 192.168.7.254 255.255.255.0
[H3C-Vlan-interface7]quit
[H3C] dhcp server forbidden-ip 192.168.5.100 //配置不参与自动分配的IP地址
[H3C] dhcp server forbidden-ip 192.168.6.100
[H3C] dhcp server forbidden-ip 192.168.7.100
[H3C] dhcp server ip-pool 5 //配置地址池
[H3C-dhcp-pool-5] network 192.168.5.0 mask 255.255.255.0
[H3C-dhcp-pool-5] dns-list 8.8.8.8
[H3C-dhcp-pool-5] gateway-list 192.168.5.254
[H3C-dhcp-pool-5] quit
[H3C] dhcp server ip-pool 6
[H3C-dhcp-pool-6] network 192.168.6.0 mask 255.255.255.0
[H3C-dhcp-pool-6] dns-list 8.8.8.8
[H3C-dhcp-pool-6] gateway-list 192.168.6.254
[H3C-dhcp-pool-6] quit
[H3C] dhcp server ip-pool 7
[H3C-dhcp-pool-7] network 192.168.7.0 mask 255.255.255.0
[H3C-dhcp-pool-7] dns-list 8.8.8.8
[H3C-dhcp-pool-7] gateway-list 192.168.7.254
[H3C-dhcp-pool-7] quit
(0)
但二层交换机一般只能透传一个vlan。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
但二层交换机一般只能透传一个vlan。