搜尋此網誌

2012年12月19日 星期三

HP A5120 & E5500 SI Switch設定筆記


By default the 5120 does not have the web GUI enabled

The following should get you going.

Log into the cli as administrator and Issue the following commands

system-view

ip http enable

ip http port 80

local-user  admin *enter a name to access the web GUI here*

password simple 123456 *enter a password here*

authorization-attribute level 3 *enter the access level you want for this user* 3最高,0最低

 

# Log in to the device via the console port and configure the IP address of VLAN 1 of the device. VLAN 1 is the default VLAN.

system-view

[Sysname] interface vlan-interface 1  (此處可以直接設定您要的Vlan ID, Ex: 28)

[Sysname-VLAN-interface1] ip address 192.168.20.66 255.255.255.0

[Sysname-VLAN-interface1] quit

 

# Create a local user named admin, and set the password to admin for the user. Specify the Telnet

service type for the local user, and set the command level to 3 for this user.

[Sysname] local-user admin

[Sysname-luser-admin] service-type telnet

[Sysname-luser-admin]

[Sysname-luser-admin] password simple admin

quit

Save

  • Assign一個Port給剛剛設定的vlan ID,然後將此port接到同一個網段。
  • 看看可不可以Ping到上面所設定的IP,如果可以才能繼續往下。
  • 利用電腦Browser連進去
  • 如果要和L3 Switch trunk連線的話,要各設定一個porttrunk且帶tag
 
#如果要將 ip address移除,請用undo ip address
ip address
Syntax
ip addressip-address { mask | mask-length }
undo ip address [ ip-address { mask | mask-length } ]
Link Aggregation設定的方法:
先設定 Link Aggregation 的成員埠,設定完 Link Aggregation 後再針對該 Link Aggregation Group 設定。
所以要成為 Link Aggregation member port link-type 必須為 [access]
再將該 Link Aggregation Group Port 設為 trunk 即可。
也就是說,以後針對 class-two 的設定不能單獨對 member port 設定,要對 group 設定。
參考範例:
建立動態Link Aggregation Group,其成員埠為 23 & 24VLAN Allow All
system-view
# 建立編號為 2 Link Aggregation
[HP]interface Bridge-Aggregation 2
# 將該 Link Aggregation 模式設為動態 (LACP Enable)
[HP-Bridge-Aggregation2]link-aggregation mode dynamic
 
[HP-Bridge-Aggregation2]quit
 
# port 23 & 24 加入 [Link Aggregation 2]
[HP]interface GigabitEthernet 1/0/23
[HP -GigabitEthernet1/0/23]port link-aggregation group 2
[HP -Bridge-Aggregation2]interface GigabitEthernet 1/0/24
[HP -GigabitEthernet1/0/24]port link-aggregation group 2
# 切換到 Bridge-Aggregation 2,設定其為 trunk port VLAN
[HP]interface Bridge-Aggregation 2
[HP -Bridge-Aggregation2]port link-type trunk
[HP -Bridge-Aggregation2]port trunk permit vlan all
# 完成記得存檔
[HP -Bridge-Aggregation2]save


ps.如果後端接的是nas or server,則Bridge-Aggregation 2就不用設定成Trunk,要設定成Access。

[HP]interface Bridge-Aggregation 2
[HP -Bridge-Aggregation2]port link-type access
[HP -Bridge-Aggregation2]port access vlan 28