其他分享
首页 > 其他分享> > ensp网管配置

ensp网管配置

作者:互联网


关闭泛洪信息:un ter m

交换机左ACC1:

sys
sys ACC1
[ACC1]vlan batch 10
[ACC1]interface eth-trunk 1
[ACC1-Eth-Trunk1] port link-type trunk //配置为trunk模式,用于透传VLAN。
[ACC1-Eth-Trunk1] port trunk allow-pass vlan 10 //配置Eth-Trunk1透传ACC1上的业务VLAN
[ACC1-Eth-Trunk1] mode lacp //配置Eth-Trunk1为LACP模式
[ACC1] intg0/0/1 //将成员接口加入Eth-Trunk1
[ACC1-GigabitEthernet0/0/1] eth-Trunk 1
[ACC1] intg0/0/2
[ACC1-GigabitEthernet0/0/2] eth-Trunk 1
[ACC1] int e0/0/2 //配置连接PC1的接口
[ACC1-Ethernet0/0/2] port link-type access
[ACC1-Ethernet0/0/2] port default vlan 10
[ACC1-Ethernet0/0/2] stp edged-port enable
[ACC1] int e0/0/3 //配置连接PC2的接口
[ACC1-Ethernet0/0/3] port link-type access
[ACC1-Ethernet0/0/3] port default vlan 10
[ACC1-Ethernet0/0/3] stp edged-port enable

ACC2

sys
sys ACC2
[ACC2]vlan batch 20
[ACC2]interface eth-trunk 2
[ACC2-Eth-Trunk2] port link-type trunk //配置为trunk模式,用于透传VLAN。
[ACC2-Eth-Trunk2] port trunk allow-pass vlan 20 //配置Eth-Trunk1透传ACC2上的业务VLAN
[ACC2-Eth-Trunk2] mode lacp //配置Eth-Trunk2为LACP模式
[ACC2] intg0/0/1 //将成员接口加入Eth-Trunk2
[ACC2-GigabitEthernet0/0/1] eth-Trunk 2
[ACC2] intg0/0/2
[ACC2-GigabitEthernet0/0/2] eth-Trunk 2
[ACC2] int e0/0/2 //配置连接PC3的接口
[ACC2-Ethernet0/0/2] port link-type access
[ACC2-Ethernet0/0/2] port default vlan 20
[ACC2-Ethernet0/0/2] stp edged-port enable
[ACC2] int e0/0/3 //配置连接PC4的接口
[ACC2-Ethernet0/0/3] port link-type access
[ACC2-Ethernet0/0/3] port default vlan 20
[ACC2-Ethernet0/0/3] stp edged-port enable

CORE

sys
sys CORE
[CORE] vlanbatch 10 20 100//批量创建VLAN
[CORE] interface eth-trunk 1
[CORE-Eth-Trunk1] port link-type trunk //配置为trunk模式,用于透传VLAN
[CORE-Eth-Trunk1] port trunk allow-pass vlan 10 //配置Eth-Trunk1透传ACC1上的业务VLAN
[CORE-Eth-Trunk1] mode lacp //配置为LACP模式
[CORE] int g0/0/1 //将成员接口加入Eth-Trunk1
[CORE-GigabitEthernet0/0/1] eth-Trunk 1
[CORE-GigabitEthernet0/0/1] quit
[CORE] interface eth-trunk 2
[CORE-Eth-Trunk2] port link-type trunk //配置为trunk模式,用于透传VLAN
[CORE-Eth-Trunk2] port trunk allow-pass vlan 20 //配置Eth-Trunk2透传ACC2上的业务VLAN
[CORE-Eth-Trunk2] mode lacp //配置为LACP模式
[CORE] inte g0/0/2
[CORE-GigabitEthernet0/0/2] eth-Trunk 2
[CORE-GigabitEthernet0/0/2] quit
[CORE] interface Vlan 10 //配置VLANIF,使部门A与部门B之间三层互通
[CORE-Vlanif10] ipaddress 10.10.10.1 24
[CORE] interface Vlan 20 //配置VLANIF,使部门B与部门A之间三层互通
[CORE-Vlanif20] ipaddress 10.10.20.1 24
[CORE] int g0/0/20
[CORE-GigabitEthernet0/0/20] port hybrid pvid vlan 100//配置为trunk模式
[CORE-GigabitEthernet0/0/20] port hybrid untagged vlan 100 //配置透传VLAN为 CORE与上行设备的互联VLAN
[CORE] interface Vlan 100 //配置VLANIF,使CORE与路由器之间三层互通
[CORE-Vlanif100] ipaddress 10.10.100.1 24
[CORE-Vlanif100] quit

路由器AR2200

[Router] int g0/0/0
[Router-GigabitEthernet0/0/0] ip address 20.10.10.3 24
[Router] int g0/0/2
[Router-GigabitEthernet0/0/2] ip address 10.10.100.2 24
[Router] ip route-static 10.10.10.0 255.255.255.0 10.10.100.1
[Router] ip route-static 10.10.20.0 255.255.255.0 10.10.100.1
[Router] ip route-static 0.0.0.0 0.0.0.0 20.10.10.1 //环回网卡网关 不确定?

PC机

PC1:10.10.10.252 10.10.10.1

PC2:10.10.10.253 10.10.10.1

PC3:10.10.20.252 10.10.20.1

PC4:10.10.20.253 10.10.20.1

其他

win里改环回网卡网关为路由器与云连接的接口g0/0/0的ip 20.10.10.3
cmd里加路由表 route add 要加的网段xx.xx.xx.0 mask 255.255.255.0 路由器与云的接口20.10.10.3(网关)
route add 10.10.10.0 mask 255.255.255.0 20.10.10.3
route add 10.10.20.0 mask 255.255.255.0 20.10.10.3
cmd ping所有网络等一段时间更新路由表再topo

参考https://blog.csdn.net/a648642694/article/details/115567173

标签:CORE,ensp,配置,网管,10.10,Eth,ACC1,port,ACC2
来源: https://www.cnblogs.com/ben10044/p/16414888.html