所有交换机配置所有vlan
[HX_SW2]vlan batch 2 3 4 5 6 200 999 800
Info: This operation may take a few seconds. Please wait for a moment....done.
配置接入层链路捆绑
[HJ_01]int eth-tr	
[HJ_01-Eth-Trunk1]mode lacp-static 
[HJ_01-Eth-Trunk1]trunkport e0/0/2 
Info: This operation may take a few seconds. Please wait for a moment...done.
[HJ_01-Eth-Trunk1]trunkport e0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
[HJ_01-Eth-Trunk1]display this
#
interface Eth-Trunk1
 mode lacp-static
#
return
[HJ_01-Eth-Trunk1]quit
[HJ_01]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cc36-5ad1                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: down        Number Of Up Port In Trunk: 0                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
Ethernet0/0/2          Unselect 100M     32768   3      289     10100010  1     
Ethernet0/0/3          Unselect 100M     32768   4      289     10100010  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
Ethernet0/0/2          0        0000-0000-0000  0       0      0       10100011
Ethernet0/0/3          0        0000-0000-0000  0       0      0       10100011
    

--------------
[JR_02]int Eth-Trunk 1
[JR_02-Eth-Trunk1]mode lacp-static 
[JR_02-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[JR_02-Eth-Trunk1]display  this
#
interface Eth-Trunk1
 mode lacp-static
#
return
[JR_02-Eth-Trunk1]quit
[JR_02]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cc64-370b                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Selected 1GE      32768   2      305     10111100  1     
GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   32768    4c1f-cc36-5ad1  32768   3      289     10111100
GigabitEthernet0/0/2   32768    4c1f-cc36-5ad1  32768   4      289     10111100
    
[JR_02]
配置核心层链路捆绑
[HX_01]int Eth-Trunk 2
[HX_01-Eth-Trunk2]mode lacp-static 
[HX_01-Eth-Trunk2]trunkport GigabitEthernet 0/0/3 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[HX_01-Eth-Trunk2]display this
#
interface Eth-Trunk2
 mode lacp-static
#
return
[HX_01-Eth-Trunk2]quit
[HX_01]display eth-trunk 2
Eth-Trunk2's state information is:
Local:
LAG ID: 2                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cce7-04eb                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: down        Number Of Up Port In Trunk: 0                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/3   Unselect 1GE      32768   4      561     10100010  1     
GigabitEthernet0/0/4   Unselect 1GE      32768   5      561     10100010  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/3   0        0000-0000-0000  0       0      0       10100011
GigabitEthernet0/0/4   0        0000-0000-0000  0       0      0       10100011
    
-----------------
[HX_02]int Eth-Trunk 2
[HX_02-Eth-Trunk2]mode lacp-static 
[HX_02-Eth-Trunk2]trunkport GigabitEthernet 0/0/3
Info: This operation may take a few seconds. Please wait for a moment...done.
[HX_02-Eth-Trunk2]trunkport  GigabitEthernet 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[HX_02-Eth-Trunk2]quit
[HX_02]display eth-trunk 2
Eth-Trunk2's state information is:
Local:
LAG ID: 2                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cc07-5b2a                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/3   Selected 1GE      32768   4      561     10111100  1     
GigabitEthernet0/0/4   Selected 1GE      32768   5      561     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/3   32768    4c1f-cce7-04eb  32768   4      561     10111100
GigabitEthernet0/0/4   32768    4c1f-cce7-04eb  32768   5      561     10111100
接入层交换机配置access
[JR_01]int e0/0/1
[JR_01-Ethernet0/0/1]port link-type access 

-----

[JR_02]vlan batch 2 3 4 5 200 999
Info: This operation may take a few seconds. Please wait for a moment...done.
[JR_02]int e0/0/1
[JR_02-Ethernet0/0/1]port link-type access 
[JR_02-Ethernet0/0/1]port default vlan 3
捆绑接口配trunk
[JR_02]int Eth-Trunk 1
[JR_02-Eth-Trunk1]port link-type trunk 
[JR_02-Eth-Trunk1]port trunk allow-pass vlan 3 999
----
[HJ_01]int Eth-Trunk 1
[HJ_01-Eth-Trunk1]port link-type trunk 
[HJ_01-Eth-Trunk1]port trunk allow-pass vlan 3 999
交换机级联接口配trunk
[JR_01]int gi0/0/1
[JR_01-GigabitEthernet0/0/1]port link-type trunk 
[JR_01-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 999

----

[HJ_01]int e0/0/1
[HJ_01-Ethernet0/0/1]port link-type trunk 
[HJ_01-Ethernet0/0/1]port trunk allow-pass vlan 2 999