API Guide
VLT 设置中的 DHCP 侦听和 DHCP 中继代理
在此 VLT 设置中,虚拟机上的 DHCP 客户端将连接到 SW1 和 SW2,并从 DHCP 服务器获取 IP 地址。客户端和 DHCP 服务器的
VLAN 在 SW 1 和 SW 2 上均处于的默认 VRF 状态。
SW 1
DHCP 侦听配置
• 全局启用 DHCP 侦听。
OS10(config)# ip dhcp snooping
VLAN 配置
• 创建 VLAN 并为其分配用作虚拟机网关的 IP 地址。
OS10# configure terminal
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# no shutdown
OS10(conf-if-vl-100)# ip address 10.1.1.1/24
OS10(conf-if-vl-100)# exit
• 创建另一个 VLAN 并为其分配可与 DHCP 服务器通信的 IP 地址。
OS10# configure terminal
OS10(config)# interface vlan 200
OS10(conf-if-vl-200)# no shutdown
OS10(conf-if-vl-200)# ip address 10.2.1.1/24
OS10(conf-if-vl-200)# exit
• 将 SW 1 配置为 VM 中的客户端的 DHCP 中继代理。您在此处指定的 IP 地址是 DHCP 服务器的 IP 地址
OS10# configure terminal
OS10(config)# interface vlan 100
OS10(conf-if-vl-100)# ip helper-address 10.2.1.2
VLT 配置
系统管理
201