内容发布更新时间 : 2024/11/17 6:30:59星期一 下面是文章的全部内容请认真阅读。
duplex [full|half] //双工 全双工/半双工
Admin\\interface#set uplink slot 19 port 1 auto_negotiation disable speed 10000m duplex full
// 19:1 端口强制10000M全双工 1.3、显示上联端口信息
Admin\\device#show uplink port all //查询所有上联端口状态 Admin# cd device
Admin\\device#show uplink port all
Admin\\device#show uplink slot
1.4LACP使能、查询
Admin\\protocol\\lacp# set lacp [enable|disable] // 上联端口LACP使能/去使能 Admin# cd protocol Admin\\protoco# cd lacp
Admin\\protocol\\lacp#set lacp enable
Admin\\protocol\\lacp# show lacp channel-group trunks // 查询所有上联trunk组LACP状态
Admin\\protocol\\lacp# show lacp channel-group trunks
LACP GROUP state information is:
Group Id: 1 Mode: LACP
System Priority: 32768 System ID: 34bf-9074-ae1f Priority Preemption: disable
--------------------------------------------------------------------------------
ActorPortName Status PortPri PortKey PortState 17 select 32768 1 0x3d 23 select 32768 1 0x3d --------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
17 32768 84d9-31e6-e24b 32768 310 5 0x3d
23 32768 84d9-31e6-e24b 32768 3790 5 0x3d
Group Id: 2 Mode: LACP
System Priority: 32768 System ID: 34bf-9074-ae1f
Priority Preemption: disable
--------------------------------------------------------------------------------
ActorPortName Status PortPri PortKey PortState 20 select 32768 2 0x3d 26 select 32768 2 0x3d --------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
20 32768 84d9-31e6-e255 32768 453 8 0x3d
26 32768 84d9-31e6-e255 32768 3933 8 0x3d
Admin\\protocol\\lacp#
1.5 聚合组配置
Admin\\interface# create trunk
Admin\\interface# set trunk <1-6> max-member-num <1-12> //设置trunk组最大成员数 1-12
Admin\\interface# add trunk
Admin\\interface# show trunk all //查询所有trunk组信息
Admin\\interface# show trunk
Admin\\interface# create trunk 1 //创建turnk组1
Admin\\interface# set trunking groupno 1 mode lacp //设置trunk组1类型为lacp Admin\\interface# set trunk 1 max-member-num 6 //设置trunk组1 最大成员数为6 Admin\\interface# add trunk 1 slot 19 port 1 //添加19:1 到trunk组1
Admin\\interface# add trunk 1 slot 20 port 1 //添加20:1 到trunk组1 Admin\\interface# show trunk 1 //查询trunk组1信息 trunk 1 info :
portId(option):19:1 20:1 . master_port 19:1, trunk_mode : LACP
trunk psc : SRC and DST MAC auto_negotiation : DISABLE duplex : FULL
flow_switch : DISABLE
mac_learning_switch : ENABLE pri_enable : DISABLE priority 0 : speed 3 :
wan_lan_mode 1 : work_mode 0 : jumbo_frame 0 : Admin\\interface#
Admin\\interface# show trunk all //查询所有trunk组信息 trunk 1 info :
portId(option):19:1 20:1 . master_port 19:1, trunk_mode : LACP
trunk psc : SRC and DST MAC auto_negotiation : DISABLE duplex : FULL
flow_switch : DISABLE
mac_learning_switch : ENABLE pri_enable : DISABLE priority 0 : speed 3 :
wan_lan_mode 1 : work_mode 0 : jumbo_frame 0 : trunk 2 info :
portId(option):19:4 20:4 . master_port 19:4, trunk_mode : LACP
trunk psc : SRC and DST MAC auto_negotiation : ENABLE duplex : HALF
flow_switch : DISABLE
mac_learning_switch : ENABLE pri_enable : DISABLE priority 0 : speed 0 :
wan_lan_mode 1 : work_mode 0 : jumbo_frame 0 : trunk 3 info : portId(option):. trunk 4 info : portId(option):.
trunk 5 info : portId(option):. trunk 6 info : portId(option):. Admin\\interface#
2、设置管理VLAN、管理IP
2.1 设置管理VLAN、管理IP
Admin\\service#set manage vlan name
Admin\\service#set manage vlan name
Admin\\service# et manage vlan name ZJNM-FH10G-OLT0001 vid 50 inputport 19:1 tagged
//南门局点 管理VLAN为50 上联端口 19:1 (19:1 默认为trunk 1的主用端口 )
Admin\\service#set manage vlan name ZJNM-FH10G-OLT0001 ip 9.100.21.149/30 (9.100.21.150)(设置的网关IP将自动转换成一条默认静态路由) //管理IP 9.100.21.149 掩码 255.255.255.252 网关 9.100.21.150
2.2 查询管理vlan、管理IP
Admin\\service#show manage_vlan all //查询管理vlan 管理 ip信息
Admin\\service# show manage_vlan all manage vlan: 50, name: manage vlan 50:
port(Tag|Utag) : trunk:1 [T]
Device: sub Unit: 50
Ethernet address: 34:bf:90:74:ae:1f Total protocols:0
Inet: 9.100.21.149 mask: 255.255.255.252 RX packets: 0 TX packets: 376285 RX bytes: 0 TX bytes: 165319730
MTU: 1492
Admin\\service#