华为三层交换机配置方法、命令及实例
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
华为三层交换机配置方法(1)
(2008-07-21 11:27:34)
转载
标签:
分类:工作汇报
杂谈
本文以河南平临高速所使用的华为华三通信的H3C S3600-28P-SI为例,配置前首先要确定型号后缀是SI还是EI,EI的支持所有协议,SI的不支持OSPS动态协议,因此SI配置路由时可以使用静态协议和RIP协议,具体配置如下:
[H3C]display current-configuration //显示当前配置
//以下开始配置
//第一步:划分VLAN,并描述
vlan 1
description local-S3600
vlan 2
description link-to-wenquan
vlan 3
description link-to-ruzhou
vlan 4
description link-to-xiaotun
vlan 5
description link-to-baofeng
vlan 6
description link-to-pingxi
vlan 7
description link-to-pingnan
vlan 8
description Uplink-to-Putian
vlan 9
description link-to-pingxicentre
//第二步:给VLAN 划网关
interface Vlan-interface2
description link to wenquan
ip address 10.41.77.41 255.255.255.192 interface Vlan-interface3
description link to ruzhou
ip address 10.41.77.105 255.255.255.192 interface Vlan-interface4
description link to xiaotun
ip address 10.41.77.169 255.255.255.192 interface Vlan-interface5
description link to baofeng
ip address 10.41.77.233 255.255.255.192 interface Vlan-interface6
description link to pingxi
ip address 10.41.78.41 255.255.255.192 interface Vlan-interface7
description link to pingnan
ip address 10.41.78.105 255.255.255.192 interface Vlan-interface8
description uplink to putian
ip address 10.41.244.102 255.255.255.252 interface Vlan-interface9
description link to pingxicentre
ip address 10.41.80.233 255.255.255.192
//第三步:给VLAN 指定端口interface Ethernet1/0/2
description link to wenquan
port access vlan 2
interface Ethernet1/0/3
description link to ruzhou
port access vlan 3
interface Ethernet1/0/4
description link to xiaotun
port access vlan 4
interface Ethernet1/0/5
description link to baofeng
port access vlan 5
interface Ethernet1/0/6
description link to pingxi
port access vlan 6
interface Ethernet1/0/7
description link to pingnan
port access vlan 7
interface Ethernet1/0/8
description uplink to putian
port access vlan 8
interface Ethernet1/0/9 to Ethernet1/0/24 description link to pingxicentre
port access vlan 9
//第四步:配置路由协议
//(1)用RIP配动态路由
rip
network 10.41.77.41
network 10.41.77.105
network 10.41.77.169
network 10.41.77.233
network 10.41.78.41
network 10.41.78.105
network 10.41.80.233
network 10.41.244.102
//(2)配静态路由(只用对远
Enable //进入私有模式
Configure terminal //进入全局模式
service password-encryption //对密码进行加密
hostname Catalyst 3550-12T1 //给三层交换机定义名称
enable password 123456. //enable密码
Enable secret 654321 //enable的加密密码(应该是乱码而不是654321这样)
Ip subnet-zero //允许使用全0子网(默认都是打开的)
Ip name-server 172.16.8.1 172.16.8.2 //三层交换机名字Catalyst 3550-12T1对应的IP地址是172.16.8.1
Service dhcp //提供DHCP服务
ip routing //启用三层交换机上的路由模块
Exit
Vtp mode server //定义VTP工作模式为sever模式
Vtp domain centervtp //定义VTP域的名称为centervtp
Vlan 2 name vlan2 //定义vlan并给vlan取名(如果不取名的话,vlan2的名字应该是vlan002)
Vlan 3 name vlan3
Vlan 4 name vlan4
Vlan 5 name vlan5
Vlan 6 name vlan6
Vlan 7 name vlan7