适用产品和版本
CE12800&12800E系列产品V100R002C00或更高版本。CE12800E安装FD-X系列单板后,不支持CSS和VS功能。
组网需求
如图1-7所示的数据中心网络,核心层由两台CE12800交换机组成CSS,以简化网络并提高可靠性。同时利用VS技术将CSS虚拟为两台独立的设备,分别作为办公区和生产区的核心,提供独立的业务转发功能,以隔离不同区域的业务及流量,提升安全性和可靠性。服务器的网关部署在VS上。接入层由多台CE6800组成iStack,与核心层之间通过跨设备Eth-Trunk连接,消除二层环路。
图1-7 基于CSS+VS的数据中心组网图
表1-5 数据准备表设备名称
配置思路
配置思路如下:
- 配置核心层CSS功能和接入层iStack功能,实现设备级冗余备份。
- 将CSS划分为vs1和vs2,分别作为办公区和生产区的核心,实现业务隔离。
- 配置VS与上下游设备间以Eth-Trunk方式连接,从而形成高可靠性、无环网络。
- 配置VS与上下游之间的路由,实现三层互通。VS与Router之间运行OSPF。服务器的网关部署在VS上。
操作步骤
- 配置核心层交换机CE12800-1和CE12800-2的CSS功能。按照图1-8所示方式,连接CE12800-1和CE12800-2之间的堆叠线缆。
图1-8
CSS详细物理连接示意图
- 配置CE12800-1和CE12800-2的堆叠属性(设置CE12800-1比CE12800-2的优先级高,使CE12800-1优先成为主交换机)。
- # 配置CE12800-1的堆叠ID为1,优先级为150,Domain ID为10,堆叠连接方式为主控板直连。
system-view[~HUAWEI] sysname CE12800-1[*HUAWEI] commit[~CE12800-1] stack[~CE12800-1-stack] stack member 1 //配置堆叠成员ID,缺省为1[*CE12800-1-stack] stack priority 150 //配置堆叠优先级,缺省为100[*CE12800-1-stack] stack domain 10 //配置Domain ID[*CE12800-1-stack] stack link-type mainboard-direct //配置连接方式,缺省为mainboard-direct[*CE12800-1-stack] quit[*CE12800-1] commit
- # 配置CE12800-2的堆叠ID为2,优先级为100,Domain ID为10,堆叠连接方式为主控板直连。
system-view[~HUAWEI] sysname CE12800-2[*HUAWEI] commit[~CE12800-2] stack[~CE12800-2-stack] stack member 2Warning: The device will use the configuration of member ID 2 after the device resets. Continue? [Y/N]: y[*CE12800-2-stack] stack priority 100[*CE12800-2-stack] stack domain 10[*CE12800-2-stack] stack link-type mainboard-direct[*CE12800-2-stack] quit[*CE12800-2] commit
- 配置堆叠端口,两台设备间通过8个跨板10GE光口互连。
- # 将CE12800-1的业务口10GE1/0/1~10GE1/0/4、10GE2/0/1~10GE2/0/4加入堆叠端口。
[~CE12800-1] port-group group1 //创建端口组[*CE12800-1-port-group-group1] group-member 10ge 1/0/1 to 10ge 1/0/4 //将端口加入端口组[*CE12800-1-port-group-group1] group-member 10ge 2/0/1 to 10ge 2/0/4[*CE12800-1-port-group-group1] shutdown //关闭端口[*CE12800-1-port-group-group1] quit[*CE12800-1] commit[~CE12800-1] interface stack-port 1[*CE12800-1-Stack-Port1] port member-group interface 10ge 1/0/1 to 1/0/4 //将物理端口加入堆叠端口[*CE12800-1-Stack-Port1] port member-group interface 10ge 2/0/1 to 2/0/4[*CE12800-1-Stack-Port1] quit[*CE12800-1] commit[~CE12800-1] port-group group1[~CE12800-1-port-group-group1] undo shutdown //打开端口[*CE12800-1-port-group-group1] quit[*CE12800-1] commit[~CE12800-1] return
- # CE12800-2的配置过程与CE12800-1相同,请参照CE12800-1的配置。配置过程略。
- 使能设备堆叠功能。
- # 使能CE12800-1的堆叠功能并重新启动设备。
saveWarning: The current configuration will be written to the device. Continue? [Y/N]: y system-view[~CE12800-1] stack[~CE12800-1-stack] stack enableWarning: Make sure that one or more dual-active detection methods are configured once the conversion is complete and the device enters the stack mode.Current configuration will be converted to the next startup saved-configuration file of stack mode.System will reboot. Continue? [Y/N]: y
- # 使能CE12800-2的堆叠功能并重新启动设备。
saveWarning: The current configuration will be written to the device. Continue? [Y/N]: y system-view[~CE12800-2] stack[~CE12800-2-stack] stack enableWarning: Make sure that one or more dual-active detection methods are configured once the conversion is complete and the device enters the stack mode.Current configuration will be converted to the next startup saved-configuration file of stack mode.System will reboot. Continue? [Y/N]: y
- 堆叠建立后重命名系统名为CSS。
system-view[~CE12800-1] sysname CSS[*CE12800-1] commit
- 配置接入层交换机的iStack功能。以CE6800-1和CE6800-2为例,其他交换机的配置类似。
- 配置CE6800-1和CE6800-2的堆叠属性(设置CE6800-1比CE6800-2的优先级高,使CE6800-1优先成为主交换机)。
- # 配置CE6800-1的堆叠ID为1,优先级为150,Domain ID为20。(缺省情况下,设备的堆叠成员ID为1。此处默认CE6800-1的堆叠成员ID为1,无需配置。)
system-view[~HUAWEI] sysname CE6800-1[*HUAWEI] commit[~CE6800-1] stack[~CE6800-1-stack] stack member 1 priority 150[*CE6800-1-stack] stack member 1 domain 20[*CE6800-1-stack] quit[*CE6800-1] commit
- # 配置CE6800-2的堆叠ID为2,Domain ID为20。
system-view[~HUAWEI] sysname CE6800-2[*HUAWEI] commit[~CE6800-2] stack[~CE6800-2-stack] stack member 1 renumber 2 inherit-configWarning: The stack configuration of member ID 1 will be inherited to member ID 2 after the device resets. Continue? [Y/N]: y[*CE6800-2-stack] stack member 1 priority 100[*CE6800-2-stack] stack member 1 domain 20[*CE6800-2-stack] quit[*CE6800-2] commit
- 配置堆叠端口,两台设备间通过4个10GE光口互连。
- # 将CE6800-1的业务口10GE1/0/1~10GE1/0/4加入堆叠端口1/1。
[~CE6800-1] interface stack-port 1/1[*CE6800-1-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/4Warning: The interface(s) (10GE1/0/1-1/0/4) will be converted to stack mode. [Y/N]: y[*CE6800-1-Stack-Port1/1] quit[*CE6800-1] commit
- # CE6800-2的配置过程与CE6800-1相同,请参考CE6800-1的配置。配置过程略。
- 保存CE6800-1、CE6800-2的配置,将CE6800-1、CE6800-2下电,然后连接堆叠链路,再给CE6800-1、CE6800-2上电。
- 堆叠建立后重命名系统名为iStack-1。假设CE6800-1为主交换机。
system-view[~CE6800-1] sysname iStack-1[*CE6800-1] commit
- 请参照上述配置,配置CE6800-3和CE6800-4堆叠。堆叠建立后重命名系统名为iStack-2。假设CE6800-3为主交换机。
- 配置CSS和iStack的业务口直连方式双主检测功能,进行分裂检测,保证CSS和iStack的高可靠性。以配置CSS的业务口直连方式双主检测功能为例。# 在CSS上配置两框间直连的接口启用直连方式双主检测功能。
[~CSS] interface interface 10ge 1/1/0/10[~CSS-10GE1/1/0/10] dual-active detect mode direct //10GE1/1/0/10与10GE2/1/0/10直连Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y[*CSS-10GE1/1/0/10] quit[*CSS] interface interface 10ge 2/1/0/10[*CSS-10GE2/1/0/10] dual-active detect mode directWarning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y[*CSS-10GE2/1/0/10] quit[*CSS] interface interface 10ge 1/2/0/10[*CSS-10GE1/2/0/10] dual-active detect mode direct //10GE1/2/0/10与10GE2/2/0/10直连Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y[*CSS-10GE1/2/0/10] quit[*CSS] interface interface 10ge 2/2/0/10[*CSS-10GE2/2/0/10] dual-active detect mode directWarning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y[*CSS-10GE2/2/0/10] quit[*CSS] commit
- # 请参照上述步骤配置iStack的业务口直连方式双主检测功能。配置过程略。
- 将核心层CSS划分为vs1和vs2。
- 设备的VS功能使用License控制,缺省情况下,新购买的设备的VS功能未打开。如果需要使用设备的VS功能,请联系代理商或华为办事处申请并购买License。
- # 创建Group模式的vs1和vs2,并将1/1、2/1号槽位接口板上的后24个10GE口分配给vs1,将1/2、2/2号槽位接口板上的后24个10GE口分配给vs2。
[~CSS] admin[~CSS-admin] virtual-system vs1 //创建vs1[*CSS-admin-vs:vs1] port-mode group //设置vs1为Group模式[*CSS-admin-vs:vs1] assign interface 10ge 1/1/0/47 //为vs1分配物理端口Warning: All configurations of the interfaces will be deleted. All interfaces of the same group will be assigned. Continue? [Y/N]: y[*CSS-admin-vs:vs1] assign interface 10ge 2/1/0/47Warning: All configurations of the interfaces will be deleted. All interfaces of the same group will be assigned. Continue? [Y/N]: y[*CSS-admin-vs:vs1] quit[*CSS-admin] virtual-system vs2 //创建vs2[*CSS-admin-vs:vs2] port-mode group[*CSS-admin-vs:vs2] assign interface 10ge 1/2/0/47Warning: All configurations of the interfaces will be deleted. All interfaces of the same group will be assigned. Continue? [Y/N]: y[*CSS-admin-vs:vs2] assign interface 10ge 2/2/0/47Warning: All configurations of the interfaces will be deleted. All interfaces of the same group will be assigned. Continue? [Y/N]: y[*CSS-admin-vs:vs2] commit[~CSS-admin-vs:vs2] return
- 当用户为Group模式的VS分配物理端口时,可以先在用户视图或系统视图使用命令
display device port-map
[ slot
slot-id ]查看转发芯片和端口的映射关系,以便了解哪些端口会被分配至VS。 - # 为VS配置管理IP地址和管理用户。
switch virtual-system vs1 //由Admin-VS切换进入VS1 system-view[~CSS-vs1] interface MEth 0/0/0/0[~CSS-vs1-MEth0/0/0/0] ip address 10.1.1.10 24 //配置管理口IP[*CSS-vs1-MEth0/0/0/0] quit[*CSS-vs1] user-interface vty 0 4[*CSS-vs1-vty0-4] authentication-mode aaa //配置用户认证模式[*CSS-vs1-vty0-4] user privilege level 3 //配置用户级别[*CSS-vs1-vty0-4] quit[*CSS-vs1] aaa[*CSS-vs1-aaa] local-user vs1_user password cipher VS1_password //配置用户名及密码[*CSS-vs1-aaa] local-user vs1_user service-type telnet[*CSS-vs1-aaa] local-user vs1_user level 3[*CSS-vs1-aaa] quit[*CSS-vs1] undo telnet server disable //开启Telnet服务[*CSS-vs1] commit
- # vs2的配置过程与vs1类似,请参照vs1的配置。配置过程略。
- 配置VS与上下游设备间通过跨框Eth-Trunk相连。以vs1与iStack-1之间的配置为例。# 在vs1上创建接口Eth-Trunk3,将10GE1/1/0/47、10GE2/1/0/47加入Eth-Trunk3中。
[~CSS-vs1] interface eth-trunk 3[*CSS-vs1-Eth-Trunk3] description To_iStack-1[*CSS-vs1-Eth-Trunk3] trunkport 10ge 1/1/0/47 2/1/0/47 //为Eth-Trunk添加成员口[*CSS-vs1-Eth-Trunk3] quit[*CSS-vs1] commit
- # 在iStack-1上创建接口Eth-Trunk3,将10GE1/0/5、10GE2/0/5加入Eth-Trunk3中。
[~iStack-1] interface eth-trunk 3[*iStack-1-Eth-Trunk3] description To_vs1[*iStack-1-Eth-Trunk3] trunkport 10ge 1/0/5 2/0/5[*iStack-1-Eth-Trunk3] quit[*iStack-1] commit
- # 请参照上述步骤配置表1-5中的其它Eth-Trunk。配置过程略。
- 在VS、iStack上配置VLAN,实现二层网络的互通。# 在vs1上配置与iStack-1相连的接口允许VLAN100通过。
[~CSS-vs1] vlan batch 100[*CSS-vs1] interface eth-trunk 3[*CSS-vs1-Eth-Trunk3] port link-type trunk[*CSS-vs1-Eth-Trunk3] undo port trunk allow-pass vlan 1[*CSS-vs1-Eth-Trunk3] port trunk allow-pass vlan 100[*CSS-vs1-Eth-Trunk3] quit[*CSS-vs1] commit
- # 在iStack-1上配置与vs1相连的接口允许VLAN100通过。
[~iStack-1] vlan batch 100[*iStack-1] interface eth-trunk 3[*iStack-1-Eth-Trunk3] port link-type trunk[*iStack-1-Eth-Trunk3] undo port trunk allow-pass vlan 1[*iStack-1-Eth-Trunk3] port trunk allow-pass vlan 100 //接口允许VLAN100通过[*iStack-1-Eth-Trunk3] quit[*iStack-1] commit
- # 请参照上述步骤配置vs2与iStack-2相连的接口允许VLAN100通过。配置过程略。
- 配置各接口的IP地址。# 配置VS与iStack相连的VLANIF接口的IP地址。以vs1的配置为例。
[~CSS-vs1] interface vlanif 100[*CSS-vs1-Vlanif100] ip address 10.10.1.1 24 //配置VLANIF接口的IP地址[*CSS-vs1-Vlanif100] quit[*CSS-vs1] commit
- # vs2的配置过程与vs1类似,请参照vs1的配置。配置过程略。
- # 配置VS和Router相连的Eth-Trunk接口的IP地址。以vs1的配置为例。
[~CSS-vs1] interface eth-trunk 1[~CSS-vs1-Eth-Trunk1] undo portswitch //切换Eth-Trunk为三层口[*CSS-vs1-Eth-Trunk1] ip address 10.10.10.1 24 //配置Eth-Trunk的IP地址[*CSS-vs1-Eth-Trunk1] quit[*CSS-vs1] commit
- # Router、vs2的配置过程与vs1类似,请参照vs1的配置。配置过程略。
- 配置VS与上下游设备之间的路由,实现三层互通。# 配置VS与Router之间运行OSPF,并在OSPF中引入直连路由。以vs1的配置为例。vs2的配置与vs1类似。配置过程略。
[~CSS-vs1] ospf 1 //配置vs1与Router之间运行OSPF[*CSS-vs1-ospf-1] area 0[*CSS-vs1-ospf-1-area-0.0.0.0] network 10.10.10.0 0.0.0.255[*CSS-vs1-ospf-1-area-0.0.0.0] quit[*CSS-vs1-ospf-1] import-route direct //OSPF引入直连路由[*CSS-vs1-ospf-1] commit[~CSS-vs1-ospf-1] return
- # 在Router上配置OSPF,配置过程与vs1类似。配置过程略。
验证配置结果
完成上述配置后,检查服务器与Router之间能否相互ping通(需要设置服务器的缺省网关)。以从服务器侧ping Router为例。
PC> ping 10.10.10.2Ping 10.10.10.2: 32 data bytes, Press Ctrl_C to breakFrom 10.10.10.2: bytes=32 seq=1 ttl=254 time=63 msFrom 10.10.10.2: bytes=32 seq=2 ttl=254 time=94 msFrom 10.10.10.2: bytes=32 seq=3 ttl=254 time=63 msFrom 10.10.10.2: bytes=32 seq=4 ttl=254 time=62 msFrom 10.10.10.2: bytes=32 seq=5 ttl=254 time=47 ms--- 10.10.10.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 47/65/94 ms
配置文件
#sysname Router#interface Eth-Trunk1 ip address 10.10.10.2 255.255.255.0#interface Eth-Trunk2 ip address 10.10.9.2 255.255.255.0#interface XGigabitEthernet1/0/1 eth-trunk 1#interface XGigabitEthernet1/0/2 eth-trunk 1#interface XGigabitEthernet1/0/3 eth-trunk 2#interface XGigabitEthernet1/0/4 eth-trunk 2#ospf 100 area 0.0.0.0 network 10.10.9.0 0.0.0.255 network 10.10.10.0 0.0.0.255#return
#sysname CSS#stack # stack mode # stack member 1 domain 10 stack member 1 priority 150 # stack member 2 domain 10#interface 10GE1/1/0/1 port mode stack stack-port 1/1#interface 10GE1/1/0/2 port mode stack stack-port 1/1#interface 10GE1/1/0/3 port mode stack stack-port 1/1#interface 10GE1/1/0/4 port mode stack stack-port 1/1#interface 10GE1/1/0/10 dual-active detect mode direct#interface 10GE1/2/0/1 port mode stack stack-port 1/1#interface 10GE1/2/0/2 port mode stack stack-port 1/1#interface 10GE1/2/0/3 port mode stack stack-port 1/1#interface 10GE1/2/0/4 port mode stack stack-port 1/1#interface 10GE1/2/0/10 dual-active detect mode direct#interface 10GE2/1/0/1 port mode stack stack-port 2/1#interface 10GE2/1/0/2 port mode stack stack-port 2/1#interface 10GE2/1/0/3 port mode stack stack-port 2/1#interface 10GE2/1/0/4 port mode stack stack-port 2/1#interface 10GE1/2/0/10 dual-active detect mode direct#interface 10GE2/2/0/1 port mode stack stack-port 2/1#interface 10GE2/2/0/2 port mode stack stack-port 2/1#interface 10GE2/2/0/3 port mode stack stack-port 2/1#interface 10GE2/2/0/4 port mode stack stack-port 2/1#interface 10GE2/2/0/10 dual-active detect mode direct#admin virtual-system vs1 port-mode group resource u4route upper-limit 60000 resource m4route upper-limit 1000 resource u6route upper-limit 16000 resource m6route upper-limit 100 resource vlan upper-limit 4063 resource mpls enable resource trill enable resource mcast enable resource vpn-instance upper-limit 4096 resource cpu weight 5 resource memory ratio-threshold 100 assign interface 10GE1/1/0/24 assign interface 10GE1/1/0/25 assign interface 10GE1/1/0/26 assign interface 10GE1/1/0/27 assign interface 10GE1/1/0/28 assign interface 10GE1/1/0/29 assign interface 10GE1/1/0/30 assign interface 10GE1/1/0/31 assign interface 10GE1/1/0/32 assign interface 10GE1/1/0/33 assign interface 10GE1/1/0/34 assign interface 10GE1/1/0/35 assign interface 10GE1/1/0/36 assign interface 10GE1/1/0/37 assign interface 10GE1/1/0/38 assign interface 10GE1/1/0/39 assign interface 10GE1/1/0/40 assign interface 10GE1/1/0/41 assign interface 10GE1/1/0/42 assign interface 10GE1/1/0/43 assign interface 10GE1/1/0/44 assign interface 10GE1/1/0/45 assign interface 10GE1/1/0/46 assign interface 10GE1/1/0/47 assign interface 10GE2/1/0/24 assign interface 10GE2/1/0/25 assign interface 10GE2/1/0/26 assign interface 10GE2/1/0/27 assign interface 10GE2/1/0/28 assign interface 10GE2/1/0/29 assign interface 10GE2/1/0/30 assign interface 10GE2/1/0/31 assign interface 10GE2/1/0/32 assign interface 10GE2/1/0/33 assign interface 10GE2/1/0/34 assign interface 10GE2/1/0/35 assign interface 10GE2/1/0/36 assign interface 10GE2/1/0/37 assign interface 10GE2/1/0/38 assign interface 10GE2/1/0/39 assign interface 10GE2/1/0/40 assign interface 10GE2/1/0/41 assign interface 10GE2/1/0/42 assign interface 10GE2/1/0/43 assign interface 10GE2/1/0/44 assign interface 10GE2/1/0/45 assign interface 10GE2/1/0/46 assign interface 10GE2/1/0/47 virtual-system vs2 port-mode group resource u4route upper-limit 60000 resource m4route upper-limit 1000 resource u6route upper-limit 16000 resource m6route upper-limit 100 resource vlan upper-limit 4063 resource mpls enable resource trill enable resource mcast enable resource vpn-instance upper-limit 4096 resource cpu weight 5 resource memory ratio-threshold 100 assign interface 10GE1/2/0/24 assign interface 10GE1/2/0/25 assign interface 10GE1/2/0/26 assign interface 10GE1/2/0/27 assign interface 10GE1/2/0/28 assign interface 10GE1/2/0/29 assign interface 10GE1/2/0/30 assign interface 10GE1/2/0/31 assign interface 10GE1/2/0/32 assign interface 10GE1/2/0/33 assign interface 10GE1/2/0/34 assign interface 10GE1/2/0/35 assign interface 10GE1/2/0/36 assign interface 10GE1/2/0/37 assign interface 10GE1/2/0/38 assign interface 10GE1/2/0/39 assign interface 10GE1/2/0/40 assign interface 10GE1/2/0/41 assign interface 10GE1/2/0/42 assign interface 10GE1/2/0/43 assign interface 10GE1/2/0/44 assign interface 10GE1/2/0/45 assign interface 10GE1/2/0/46 assign interface 10GE1/2/0/47 assign interface 10GE2/2/0/24 assign interface 10GE2/2/0/25 assign interface 10GE2/2/0/26 assign interface 10GE2/2/0/27 assign interface 10GE2/2/0/28 assign interface 10GE2/2/0/29 assign interface 10GE2/2/0/30 assign interface 10GE2/2/0/31 assign interface 10GE2/2/0/32 assign interface 10GE2/2/0/33 assign interface 10GE2/2/0/34 assign interface 10GE2/2/0/35 assign interface 10GE2/2/0/36 assign interface 10GE2/2/0/37 assign interface 10GE2/2/0/38 assign interface 10GE2/2/0/39 assign interface 10GE2/2/0/40 assign interface 10GE2/2/0/41 assign interface 10GE2/2/0/42 assign interface 10GE2/2/0/43 assign interface 10GE2/2/0/44 assign interface 10GE2/2/0/45 assign interface 10GE2/2/0/46 assign interface 10GE2/2/0/47#return
#sysname vs1#vlan batch 100#aaa local-user vs1_user password cipher %^%#TT4N+w]%[C+rM>)S8Ti!'p1iV@RZh(3MO7QGd96Z%^%# local-user vs1_user service-type telnet local-user vs1_user level 3#interface MEth0/0/0/0 ip address 10.1.1.10 255.255.255.0#interface Vlanif100 ip address 10.10.1.1 24#interface Eth-Trunk1 undo portswitch description To_Router ip address 10.10.10.1 255.255.255.0#interface Eth-Trunk3 description To_iStack-1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 100#interface 10GE1/1/0/46 eth-trunk 1#interface 10GE1/1/0/47 eth-trunk 3#interface 10GE2/1/0/46 eth-trunk 1#interface 10GE2/1/0/47 eth-trunk 3#ospf 1 import-route direct area 0.0.0.0 network 10.10.10.0 0.0.0.255#user-interface vty 0 4 authentication-mode aaa user privilege level 3#return
#sysname vs2#vlan batch 100#aaa local-user vs2_user password cipher %^%#%j]%Lv%StAqIveR'YfuS<><&&@x s(/%^%#="" local-user="" vs2_user="" service-type="" telnet="" local-user="" vs2_user="" level="" 3#interface="" meth0/0/0/0="" ip="" address="" 10.1.1.20="" 255.255.255.0#interface="" vlanif100="" ip="" address="" 10.10.2.1="" 24#interface="" eth-trunk2="" undo="" portswitch="" description="" to_router="" ip="" address="" 10.10.9.1="" 255.255.255.0#interface="" eth-trunk4="" description="" to_istack-2="" port="" link-type="" trunk="" undo="" port="" trunk="" allow-pass="" vlan="" 1="" port="" trunk="" allow-pass="" vlan="" 100#interface="" 10ge1/2/0/46="" eth-trunk="" 2#interface="" 10ge1/2/0/47="" eth-trunk="" 4#interface="" 10ge2/2/0/46="" eth-trunk="" 2#interface="" 10ge2/2/0/47="" eth-trunk="" 4#ospf="" 1="" import-route="" direct="" area="" 0.0.0.0="" network="" 10.10.9.0="" 0.0.0.255#user-interface="" vty="" 0="" 4="" authentication-mode="" aaa="" user="" privilege="" level="">&&@x>
#sysname iStack-1#vlan batch 100#interface Eth-Trunk3 description To_vs1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 100#stack # stack member 1 domain 20 stack member 1 priority 150 # stack member 2 domain 20#interface 10GE1/0/1 port mode stack stack-port 1/1#interface 10GE1/0/2 port mode stack stack-port 1/1#interface 10GE1/0/3 port mode stack stack-port 1/1#interface 10GE1/0/4 port mode stack stack-port 1/1#interface 10GE1/0/5 eth-trunk 3#interface 10GE1/0/9 dual-active detect mode direct#interface 10GE1/0/10 dual-active detect mode direct#interface 10GE2/0/1 port mode stack stack-port 2/1#interface 10GE2/0/2 port mode stack stack-port 2/1#interface 10GE2/0/3 port mode stack stack-port 2/1#interface 10GE2/0/4 port mode stack stack-port 2/1#interface 10GE2/0/5 eth-trunk 3#interface 10GE2/0/9 dual-active detect mode direct#interface 10GE2/0/10 dual-active detect mode direct#return
#sysname iStack-2#vlan batch 100#interface Eth-Trunk4 description To_vs2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 100#stack # stack member 1 domain 30 stack member 1 priority 150 # stack member 2 domain 30#interface 10GE1/0/1 port mode stack stack-port 1/1#interface 10GE1/0/2 port mode stack stack-port 1/1#interface 10GE1/0/3 port mode stack stack-port 1/1#interface 10GE1/0/4 port mode stack stack-port 1/1#interface 10GE1/0/5 eth-trunk 4#interface 10GE1/0/9 dual-active detect mode direct#interface 10GE1/0/10 dual-active detect mode direct#interface 10GE2/0/1 port mode stack stack-port 2/1#interface 10GE2/0/2 port mode stack stack-port 2/1#interface 10GE2/0/3 port mode stack stack-port 2/1#interface 10GE2/0/4 port mode stack stack-port 2/1#interface 10GE2/0/5 eth-trunk 4#interface 10GE2/0/9 dual-active detect mode direct#interface 10GE2/0/10 dual-active detect mode direct#return