API Guide

1. 创建 VLT 域并配置 VLTi
OS10(config)# interface range ethernet 1/1/4-1/1/5
OS10(conf-range-eth1/1/4-1/1/5)# no switchport
OS10(conf-range-eth1/1/4-1/1/5)# exit
OS10(config)# vlt-domain 1
OS10(conf-vlt-1)# discovery-interface ethernet 1/1/4-1/1/5
2. 配置 VLT MAC 地址。
OS10(conf-vlt-1)# vlt-mac 12:5e:23:f4:23:54
3. 指定 VLT 对等节点的管理 IP 地址作为备份链路。
OS10(conf-vlt-1)# backup destination 10.10.10.1
4. 配置 VLT 端口通道。
VLT 端口通道到虚拟机
OS10(config)# interface port-channel 10
OS10(conf-if-po-10)# description SW2ToVM
OS10(conf-if-po-10)# vlt-port-channel 10
OS10(conf-if-po-10)# switchport mode access
OS10(conf-if-po-10)# switchport access vlan 100
OS10(conf-if-po-10)# exit
OS10(config)# interface ethernet 1/1/2-1/1/3
OS10(conf-if-eth1/1/2-1/1/3)# no shutdown
OS10(conf-if-eth1/1/2-1/1/3)# channel-group 10
VLT 端口通道到 DHCP 服务器
OS10(config)# interface port-channel 20
OS10(conf-if-po-20)# description SW2ToDHCP-Server
OS10(conf-if-po-20)# vlt-port-channel 20
OS10(conf-if-po-20)# switchport mode access
OS10(conf-if-po-20)# switchport access vlan 100
OS10(conf-if-po-20)# ip dhcp snooping trust
OS10(conf-if-po-20)# exit
OS10(config)# interface ethernet 1/1/1,1/1/6
OS10(conf-if-eth1/1/1,1/1/6)# no shutdown
OS10(conf-if-et1/1/1,1/1/6)# channel-group 20
DHCP 服务器
DHCP 服务器配置
OS10(config)# interface vlan 100
OS10((conf-if-vl-100)# ip address 10.1.1.1/24
OS10((conf-if-vl-100)# exit
OS10(config)# ip dhcp server
OS10(config-dhcp)# no disable
OS10(config-dhcp)# pool dell_server1
OS10(config-dhcp-dell_server1)# lease 0 1 0
OS10(config-dhcp-dell_server1)# network 10.1.1.0/24
OS10(config-dhcp-dell_server1)# range 10.1.1.2 10.1.1.100
验证两个 VLT 对等节点上的 DHCP 侦听
以下输出显示 DHCP 侦听交换机VLT 对等节点侦听的 DHCP 消息。接口列显示本地 VLT 端口通道号。
OS10# show ip dhcp snooping binding
Number of entries : 1
Codes : S - Static D - Dynamic
IPv4 Address MAC Address Expires(Sec) Type Interface VLAN
=======================================================================================
10.1.1.2 14:18:77:0d:05:e9 3600 D port-channel10 vlan100
200
系统管理