华三交换机端口聚合相关命令
- 进入系统试视图:system-view
- 创建聚合接口:interface Bridge-Aggregation 1
- 设置聚合口模式:link-aggregation mode dynamic(动态LACP模式)
- 设置为Trunk类型:port link-type trunk
- 允许使用VLAN通过:port trunk permit vlan all
- 退出聚合口配置:quit
- 查看物理端口:display interface brief
- 进入物理端口:interface GE2/0(GE是缩写)
- 先将三层口变成二层口:port link-mode bridge
- 恢复端口默认配置:default
- 将物理端口接入到聚合口上:port link-aggregation group 1
- 删除当前物理接口的聚合口配置:undo port link-aggregation group
- 查看聚合组的成员列表:display link-aggregation summary
- 保持配置:save
- 配置IP和子网掩码:ip address 192.168.10.1 24
- 删除IP和子网掩码:undo ip address 192.168.10.1 24
- 查看IP地址:display ip interface brief
- 设置为接入链路类型:port link-type access
- 首先创建vlan 10 再将接口加入:vlan 10
- 将该接口加入:port access vlan 10
- 进入VLAN接口配置界面:interface Vlan-interface 10
- 配置VLAN 10的IP和子网掩码:ip address 10.0.0.1 255.255.255.0
- 查看VLAN配置情况:display vlan 10
- 配置默认路由:ip route-static 192.168.10.0 255.255.255.0 10.0.0.1
- 配置默认路由:ip route-static 192.168.10.0 255.255.255.0 10.0.0.2
- 配置默认路由:ip route-static 192.168.20.0 255.255.255.0 10.0.0.2
- 删除路由:undo ip route-static 192.168.20.0 255.255.255.0 10.0.0.2
- 查看路由配置情况:display ip routing-table
- 在配置通过聚合口上网的路由:ip route-static 192.168.20.0 24 10.0.0.2
- 在配置通过聚合口上网的路由:ip route-static 172.19.0.0 16 10.0.0.2
- 在华三交换机配置NAT:acl advanced 3000
- Vpp聚合口网段:rule 0 permit ip source 10.0.0.0 0.0.0.255
- 主机的网段:rule 5 permit ip source 192.168.20.0 0.0.0.255
- 其他内部网段:rule 10 permit ip source 172.19.0.0 0.0.255.255
- 进入联网的端口配置启用NAT:nat outbound 3000