以太网接口和链路配置

来源:互联网 发布:数据挖掘数据处理方法 编辑:程序博客网 时间:2024/05/29 13:34

一、配置所需命令

二、配置下图的手动模式的链路聚合


<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysna
[Huawei]sysname S1
[S1]dis
[S1]display inter
[S1]display interface G
[S1]display interface GigabitEthernet 0/0/9
GigabitEthernet0/0/9 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc78-2e70
Last physical up time   : 2016-06-11 14:13:39 UTC-08:00
Last physical down time : 2016-06-11 14:13:37 UTC-08:00
Current system time: 2016-06-11 14:14:39-08:00
Hardware address is 4c1f-cc78-2e70
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 3689 bytes, 31 packets
    Output: 357 bytes, 3 packets
    Input:
      Unicast: 0 packets, Multicast: 31 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 3 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%


[S1]display interface GigabitEthernet 0/0/10
GigabitEthernet0/0/10 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc78-2e70
Last physical up time   : 2016-06-11 14:13:39 UTC-08:00
Last physical down time : 2016-06-11 14:13:37 UTC-08:00
Current system time: 2016-06-11 14:15:37-08:00
Hardware address is 4c1f-cc78-2e70
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 6783 bytes, 57 packets
    Output: 238 bytes, 2 packets
    Input:
      Unicast: 0 packets, Multicast: 57 packets
      Broadcast: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 2 packets
      Broadcast: 0 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%


[S1]inter
[S1]interface g
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/9]undo ne
[S1-GigabitEthernet0/0/9]undo negotiation aut
[S1-GigabitEthernet0/0/9]undo negotiation auto 
[S1-GigabitEthernet0/0/9]speed
[S1-GigabitEthernet0/0/9]speed 100
[S1-GigabitEthernet0/0/9]duple
[S1-GigabitEthernet0/0/9]duplex 
[S1-GigabitEthernet0/0/9]du
[S1-GigabitEthernet0/0/9]duplex 
[S1-GigabitEthernet0/0/9]duple
[S1-GigabitEthernet0/0/9]duplex full
[S1-GigabitEthernet0/0/9]quit
[S1]inter
[S1]interface 
[S1]inter
[S1]interface g
[S1]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]undo ne
[S1-GigabitEthernet0/0/10]undo negotiation auto
[S1-GigabitEthernet0/0/10]s
[S1-GigabitEthernet0/0/10]speed 100
[S1-GigabitEthernet0/0/10]duplex full
[S1-GigabitEthernet0/0/10]quit
[S1]
[S1]interface ET
[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]
[S1-Eth-Trunk1]quit
[S1]interface g
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/9]E
[S1-GigabitEthernet0/0/9]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/9]
[S1-GigabitEthernet0/0/9]QUIT
[S1]INT
[S1]interface g
[S1]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]e
[S1-GigabitEthernet0/0/10]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/10]
[S1-GigabitEthernet0/0/10]dis
[S1-GigabitEthernet0/0/10]display e
[S1-GigabitEthernet0/0/10]display eth
[S1-GigabitEthernet0/0/10]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/9          Up          1      
GigabitEthernet0/0/10         Up          1      

SDSER

S2路由配置如上

三、配置上图的静态lacp模式的链路聚合



<S1>syste
<S1>system-view 
Enter system view, return user view with Ctrl+Z.
[S1]interf
[S1]interface g
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/9]undo
[S1-GigabitEthernet0/0/9]undo et
[S1-GigabitEthernet0/0/9]undo eth-trunk 
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/9]quit
[S1]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]undo eth-trunk
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/10]
[S1]interf
[S1]interface e
[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]mode lacp-s
[S1-Eth-Trunk1]mode lacp-static 
[S1-Eth-Trunk1]quit
[S1]inter
[S1]interface g
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/9]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-GigabitEthernet0/0/9]quit
[S1]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]et
[S1-GigabitEthernet0/0/10]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...
[S1-GigabitEthernet0/0/10]quit
[S1]lac
[S1]lacp pr
[S1]lacp priority 100
[S1]
1 0
原创粉丝点击