您的位置:首页 > 运维架构 > Linux

使用linux配置交换机端口汇聚(H3C S5120)

2014-09-23 12:57 645 查看
使用linux通过com口配置安装
windows可以通过超级终端或者crt等配置com口来连接到交换机,同样linux也是可以,linxu下使用minicom进行com口连接
1. 安装minicom,略过,随便下载或者光盘里拷出一个rpm包安装即可;
2. 配置:安装完成后使用命令minicom -s来进行配置
显示文字窗口如下:


+-----[configuration]------+


| Filenames and paths |


| File transfer protocols |


| Serial port setup |


| Modem and dialing |


| Screen and keyboard |


| Save setup as dfl |


| Save setup as.. |


| Exit |


| Exit from Minicom |


+--------------------------+


1)用上下键选择Serial port setup进行配置,大致如下:
+-----------------------------------------------------------------------+
| A - Serial Device
: /dev/ttyS0
|

| B - Lockfile Location
: /var/lock
|

| C - Callin Program
:
|

| D - Callout Program
:

|

| E - Bps/Par/Bits
: 9600 8N1
|

| F - Hardware Flow Control : No

|

| G - Software Flow Control : No

|

|

|

| Change which setting?

|


备注:按对应的字母进可以进行该项的配置,如按A配置 Serial Device ;esc为取消与退出,enter为确定
2) Screen and keyboard的配置,大致如下:


+-----------------[Screen and keyboard]-----------------+


|

|


| A - Command key is :
|


| B - Backspace key sends :
|


| C - Status line is : enabled
|


| D - Alarm sound : Yes
|


| E - Foreground Color (menu): WHITE
|


| F - Background Color (menu): BLACK
|


+-| G - Foreground Color (term): WHITE
|


| | H - Background Color (term): BLACK
|


| | I - Foreground Color (stat): WHITE
|


| | J - Background Color (stat): BLACK
|


| | K - History Buffer Size : 2000
|


| | L - Macros file : .macros
|


| | M - Edit Macros
|


| | N - Macros enabled : Yes
|


| | O - Character conversion :
|


| | P - Add linefeed : No
|


+-| Q - Local echo : No
|


| Change which setting? (Esc to exit)
|


+-------------------------------------------------------+


删除A B K后的提示符

3) 选择Save setup as dfl保存默认的配置文件
4) Exit from Minicom返回命令行

之后直接输入minicom进能进到minicom的界面如下

Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Aug 19 2010, 05:50:19.
Port /dev/ttyS0


Press CTRL-A Z for help on special keys


minicom上操作都是要先按ctrl-A后再按操作键才可以。之前就卡在这里,不知道怎么进入交换机中
其实只要先按CTRL+A在按ENTER键即可;
另外可以查看帮助CTRL-A Z,还有一些相关的命令如下:

+-------------------------------------------------------------------+
|
Minicom Command Summary
|

|

|

|
Commands can be called by CTRL-A
|

|

|

|
Main Functions
Other Functions |

|

|

| Dialing directory..D
run script (Go)....G | Clear Screen.......C |

| Send files.........S
Receive files......R | cOnfigure Minicom..O |

| comm Parameters....P
Add linefeed.......A | Suspend minicom....J |

| Capture on/off.....L
Hangup.............H | eXit and reset.....X |

| send break.........F
initialize Modem...M | Quit with no reset.Q |

| Terminal settings..T
run Kermit.........K | Cursor key mode....I |

| lineWrap on/off....W
local Echo on/off..E | Help screen........Z |

| Paste file.........Y
| scroll Back........B |

|

|

|
Select function or press Enter for none.
|

|

|

|
Written by Miquel van Smoorenburg 1991-1995
|

|
Some additions by Jukka Lahtinen 1997-2000
|

|
i18n by Arnaldo Carvalho de Melo 1998
|

+-------------------------------------------------------------------+

进入到交换机后,端口汇聚的配置大致如下(交换机为H3C S5120-24P-EI)

system-view
[H3C]interface Bridge-Aggregation1
[H3C]interface GigabitEthernet1/0/13
[H3C-GigabitEthernet1/0/13]port link-type trunk

[H3C-GigabitEthernet1/0/13]port trunk permit vlan all

Please wait........................................... Done.
[H3C-GigabitEthernet1/0/13]port link-aggregation group 1
[H3C]interface GigabitEthernet1/0/14
[H3C-GigabitEthernet1/0/14]port link-type trunk

[H3C-GigabitEthernet1/0/14]port trunk permit vlan all

Please wait........................................... Done.
[H3C-GigabitEthernet1/0/14]port link-aggregation group 1
[H3C]interface GigabitEthernet1/0/15
[H3C-GigabitEthernet1/0/15]port link-type trunk

[H3C-GigabitEthernet1/0/15]port trunk permit vlan all

Please wait........................................... Done.
[H3C-GigabitEthernet1/0/15]port link-aggregation group 1
[H3C]interface GigabitEthernet1/0/16
[H3C-GigabitEthernet1/0/16]port link-type trunk

[H3C-GigabitEthernet1/0/16]port trunk permit vlan all

Please wait........................................... Done.
[H3C-GigabitEthernet1/0/16]port link-aggregation group 1

[H3C]interface Bridge-Aggregation1
[H3C-Bridge-Aggregation1]port link-type trunk
[H3C-Bridge-Aggregation1]port trunk permit vlan all

Please wait........................................... Done.
Configuring GigabitEthernet1/0/13........................................... D.
Configuring GigabitEthernet1/0/14........................................... D.
Configuring GigabitEthernet1/0/15........................................... D.
Configuring GigabitEthernet1/0/16........................................... D.

[H3C]display link-aggregation member-port


Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

D -- Synchronization, E -- Collecting, F -- Distributing,

G -- Defaulted, H -- Expired

GigabitEthernet1/0/13:
Aggregation Interface: Bridge-Aggregation1
Port Number: 13
Oper-Key: 1

GigabitEthernet1/0/14:
Aggregation Interface: Bridge-Aggregation1
Port Number: 14
Oper-Key: 1

GigabitEthernet1/0/15:
Aggregation Interface: Bridge-Aggregation1
Port Number: 15
Oper-Key: 1

GigabitEthernet1/0/16:
Aggregation Interface: Bridge-Aggregation1
Port Number: 16
Oper-Key: 1

[H3C]display interface Bridge-Aggregation1

Bridge-Aggregation1 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e207-f2e0
Description: Bridge-Aggregation1 Interface
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 1
Port link-type: trunk
VLAN passing : 1(default vlan)
VLAN permitted: 1(default vlan), 2-4094
Trunk port encapsulation: IEEE 802.1q

[H3C]display link-aggregation summary


Aggregation Interface Type:
BAGG -- Bridge-Aggregation, RAGG -- Route-Aggregation

Aggregation Mode: S -- Static, D -- Dynamic

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 0cda-4148-78c9

AGG AGG
Partner ID Select Unselect
Share

Interface Mode

Ports Ports Type

-------------------------------------------------------------------------------
BAGG1 S
none
0 4 Shar
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: