-
《交换机配置规范》
目录
一、
R
AISECOM
交换机配置
...............
..................................................
...........................................
2
1.
交换机初始设置
.
..................................
..................................................
...............................
2
2.
更改交换机名称
.
..................................
..................................................
...............................
2
3.
设置交换机用户名和密码
.
..............................
..................................................
...................
2
4.
设置交换机
enable
密码
.
............
..................................................
........................................
2
5.
配置
交换机
IP
地址和子网掩码
.
...............................
..................................................
.........
2
6.
配置交换机网关
.
..................................
..................................................
...............................
2
7.
配置
交换机
SNMP
配置
.
..................................
..................................................
...................
2
8.
配置交换机端口使用及描述
p>
.
.............................
..................................................
................
3
9.
配置交换机的端口限速
.
...............................
..................................................
......................
3
10.
关闭未使用交换机端口
.
..............................
..................................................
.....................
3
11.
保存配置设置
.
..................................
..................................................
.................................
3
12.
例子
...........
..................................................
..................................................
......................
3
二、
GREENNET
交换机配置
........................................... ...............................
错
误!未定义书签。
1.
交换机初始设置
.
..................................
...............................................
错
误!未定义书签。
2.
更改交换机名称
.
..................................
...............................................
错
误!未定义书签。
3.
设置交换机用户名和密码
.
..............................
...................................
错
误!未定义书签。
4.
配置交换机
IP
地址、子
网掩码和网关
.
.........
...................................
错
误!未定义书签。
5.
配置交换机
SNMP
配置
.
...............
..................................................
....
错
误!未定义书签。
6.
配置交换机端口使用及描述
p>
.
.............................
................................
错
误!未定义书签。
7.
配置交换机的端口限速
.
...............................
......................................
错
误!未定义书签。
8.
关闭未使用交换机端口
.
...............................
......................................
错
误!未定义书签。
9.
保存配置设置
< br>.
...................................
..................................................
错
误!未定义书签。
10.
例子
...........
..................................................
......................................
错
误!未定义书签。
三、华为交换机配置
.
.............................................
..................................................
.......................
6
1.
交换机初始设置
.
..................................
..................................................
...............................
6
2.
更改交换机名称
.
..................................
..................................................
...............................
6
3.
设置交换机用户名和密码
.
..............................
..................................................
...................
6
4.
设置交换机
super
密码
.....................................
..................................................
..................
6
5.
配置交换机
IP
地址和子
网掩码
.
............
..................................................
............................
6
6.
配置交换机网关
.
..................................
..................................................
...............................
6
7.
配置
交换机
SNMP
配置
.
..................................
..................................................
...................
6
8.
配置交换机端口使用及描述
p>
.
.............................
..................................................
................
7
9.
配置交换机的端口限速
.
...............................
..................................................
......................
7
10.
关闭未使用交换机端口
.
..............................
..................................................
.....................
7
11.
保存配置设置
.
..................................
..................................................
.................................
7
12.
例子
...........
..................................................
..................................................
......................
7
一、
R<
/p>
AISECOM
交换机配置
1.
交换机初始设置
交换机用户名:
raisecom
交换机密码:
raisecom
交换机
e
nable
密码:
raisecom
2.
更改交换机名称
在全局模式下配置
hostname
交换机名称
,如下
Raisecom#hostname
JiaoHuanJiMingCheng
3.
设置交换机用户名和密码
在全局模式下配置
user name
用户名
password
密码
,如下
Raisecom#user name
admin
password
asdfzxcv
4.
设置交换机
enabl
e
密码
在全局模式下配置
enable password
,
回车,
输入两遍自己项设置的密码,
如下
Raisecom#enable password
Please input
password
:
Please input
again
:
5.
配置交换机
IP
地址和子网掩
码
在全局模式下配置
config
terminal
进入全局配置模式,再配置
interfac
e ip
0
进入
逻辑端口模式,在配置
ip
address
1
如下
Raisecom#config terminal
Raisecom(config)#interface ip 0
Raisecom(config-ip)#ip address
59.108.0.2 255.255.255.0
1
6.
配置交换机网关
在全局配置模式下配置
ip default-gateway
,如下
Raisecom(config)#ip default-gateway
59.108.0.1
7.
配置
交换机
SNMP
配置
在全局配置模式下配置
snmp-server
community
名称
view
名称
rw
Raisecom(config)#snmp-
server community
founderbn
view
internet
rw
默认情况下就按上条命令配。
3A
在全局模式下配置
Raisecom#user login radius-local
server-no-response
enable login radius-
local server-no-response
radius
59.108.69.35
radius-key founderbn
日志
conf t
logging on
logging host
59.108.69.35 local7 debugging
logging
rate 10000
exit
wr
8.
配置交换机端口使用及描述
在全局配置模式下配置
interface port
端口号
进入端口,
在端口模式下配置
description
< br>端口描述(公司名称
-
带宽大小)
,如下
Raisecom(config)#interface port
1
Raisecom(config-ip)# description
FangZhengKuanDai-10M
端口描述是用户公司名加该公司带宽大小:
例如:方正科技
< br>10M
:
description
FangZhengKuanDai-10M
p>
方正奥德共享
2M
:
description
FangZhengAoDe-2M-GX
9.
配置交换机的端口限速
在全局配置模式下配置
rate-limit port-
list
端口号
ingress
进流量
,
rate-limit port-list
端口号
egress
出流量
,如下
Raisecom(config)#rate-limit port-list
1
ingress
1024
Raisecom(config)#rate-limit port-list
1
egress
1024
端口限速规范:
独享用户是几兆就在交换机端口限几兆
共享用户限速见下表:
共享
1M
限
256K
共享
2M
限
512K
共享
4M
限
768K
共享
10M
限
1M(1024K)
10.
关闭未使用交换机端口
Raisecom
交换机默认状态下物理端口全部开放,做完操作后关闭未使用端口,
进入端口模
式下配置
shutdown
,如下
Raisecom(config-ip)#shutdown
11.
保存配置设置
在全局模式下配置
write
,来保存配置的设置,如下
Raisecom#write
12.
例子
System current
configuration:
hostname
WangJing-E-1ceng
interface port 1
description
XiaLian-B-5ceng-E0/
8
interface port 2
description
HuanTaiZhongKe-2M
interface port 3
description
XiaLian-E-3ceng-E0/
8
interface port 4
description
AiNuoXinTai-4M-GX
interface port 5
description JieHuaShengWu-10M
interface port 6
description
NuoLanTe-2M-GX
Interface port 7
description ShiDaiKaiGe-2M-GX
interface port 8
description
DiLeDongMan-2M-GX
interface port 9
shutdown
interface port 10
shutdown
Interface port 11
shutdown
interface port 12
shutdown
interface port 13
shutdown
interface port 14
shutdown
interface port 15
shutdown
interface port 16
description ShangLian-
NanHu-E0/
4
!
!command in vlan configuration mode
!
!command in ip interface
mode
interface ip 1
ip
address 59.108.41.30 255.255.255.240 1
!
!command in cluster_mode
!
!command in config_mode
telnet-server max-session 4
rate-limit port-list 2 ingress 2048 126
rate-limit port-list 2 egress 2048 126
rate-limit port-list 4 ingress 768 126
rate-limit port-list 4 egress 768 126
rate-limit port-list 5 ingress 10240
126
rate-limit port-list 5 egress 10240
126
rate-limit port-list 6-8 ingress
512 126
rate-limit port-list 6-8 egress
512 126
snmp-server community founderbn
view internet ro
ip default-gateway
59.108.41.17