1.实验拓扑图:
2.三层交换配置:
[Quidway]vlan 10
[Quidway-vlan10]port e0/1
[Quidway-vlan10]vlan 100
[Quidway-vlan100]port e0/24
[Quidway-vlan100]int vlan 10
[Quidway-Vlan-interface10]ip add 192.168.10.254 ?
X.X.X.X IP mask
[Quidway-Vlan-interface10]ip add 192.168.10.254 255.255.255.0
[Quidway-Vlan-interface10]int vlan 100
[Quidway-Vlan-interface100]ip add 192.168.100.254 255.255.255.0
<Quidway>sys
进入系统视图, 键入Ctrl+Z退回到用户视图.
[Quidway]dhcp-server ?
INTEGER<0-19> DHCP 服务器的组号
detect 检测伪DHCP服务器
[Quidway]dhcp-server 1 ?
ip 指定IP地址
[Quidway]dhcp-server 1 ip ?
X.X.X.X DHCP 服务器组的第一个IP地址
[Quidway]dhcp-server 1 ip 192.168.100.100 ?
X.X.X.X DHCP 服务器组的第二个IP地址 //可设备份dhcp服务器
<cr>
[Quidway]dhcp-server 1 ip 192.168.100.100
[Quidway]int vlan 10
[Quidway-Vlan-interface10]d?
description dhcp-server display
[Quidway-Vlan-interface10]dhcp-server ?
INTEGER<0-19> DHCP 服务器的组号
[Quidway-Vlan-interface10]dhcp-server 1