(1) 配置接口IP地址
batch 10 20 30 40
(2) Access口配置
Interface Ethernet 0/0/_(端口号)
Port link-type access
Port default vlan_(对应上述vlan)
(3) Trunk口配置
Interface g 0/0/_
Port link-type trunk
Port trunk allow-pass vlan all
(4) Vlan的网关配置
Interface vlanif 10
Ip address 10.61.10.254 23
(5) 链路聚合
以eth-trunk1为例,配置命令如下:
Interface eth-trunk 1
mode lacp-static
port link-type trunk
port trunk allow-pass vlan all
int g 0/0/1
eth-trunk 1
int g 0/0/2
eth-trunk 1
(6) 生成树协议stp配置
备份桥:stp enable
stp mode stp
stp root secondery
根桥:stp enable
stp mode stp
stp root primary
(7) Ipv4路由协议
Ip route-static 0.0.0.0 0.0.0.0 172.16.61.1
interface vlanif 1
ip address 10.61.10.1
Ip route-static 0.0.0.0 0.0.0.0 172.16.61.2
interface vlanif 1
ip address 10.61.20.1