华为三层交换机配置方法、命令及实例

上传人:新** 文档编号:498954657 上传时间:2023-09-24 格式:DOCX 页数:23 大小:34.41KB
返回 下载 相关 举报
华为三层交换机配置方法、命令及实例_第1页
第1页 / 共23页
华为三层交换机配置方法、命令及实例_第2页
第2页 / 共23页
华为三层交换机配置方法、命令及实例_第3页
第3页 / 共23页
华为三层交换机配置方法、命令及实例_第4页
第4页 / 共23页
华为三层交换机配置方法、命令及实例_第5页
第5页 / 共23页
点击查看更多>>
资源描述

《华为三层交换机配置方法、命令及实例》由会员分享,可在线阅读,更多相关《华为三层交换机配置方法、命令及实例(23页珍藏版)》请在金锄头文库上搜索。

1、华为三层交换机配置方法 (1)创作:欧阳理时间:2021.03.05(2008-07-21 11:27:34)创标签:分类:工作汇报杂谈本文以河南平临高速所使用的华为华三通信的H3CS3600-28P-SI为例,配置前首先要确定型号后缀是SI还 是EI, EI的支持所有协议,SI的不支持OSPS动态协 议,因此SI配置路由时可以使用静态协议和RIP协议, 具体配置如下:vH3Csystem-view 进 入系统视图H3Cdisplay current-configuration 显示当前配置以下开始配置第一步:划分VLAN,并描述vlan 1description local-S3600vla

2、n 2description link-to-wenquanvlan 3description link-to-ruzhouvlan 4description link-to-xiaotunvlan 5description link-to-baofengvlan 6description link-to-pingxivlan 7description link-to-pingnanvlan 8description Uplink-to-Putianvlan 9description link-to-pingxicentre/第二步:给 VLAN 划网关interface Vlan-inter

3、face2description link to wenquanip address 10.41.77.41 255.255.255.192interface Vlan-interface3description link to ruzhouip 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

4、 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

5、 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 Ethe

6、rnet1/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 descrip

7、tion uplink to putian port access vlan 8 interface Ethernet1/0/9 to Ethernet1/0/24 description link to pingxicentreport access vlan 9 /第四步:配置路由协议 /(1)用 RIP 配动态路由 ripnetwork 10.41.77.41network 10.41.77.105network 10.41.77.169network 10.41.77.233network 10.41.78.41network 10.41.78.105network 10.41.80.

8、233network 10.41.244.102 /(2)配静态路由(只用对远华为三层交换机配置命令分类:默认栏目2007.6.2 07:28 作者:weiwei2501 I 评论:1 I 阅读:0Enable/进入私有模式Configure terminal/进入全局模式service password-encryption/对密码进行加密hostname Catalyst 3550-12T1/给三层交换机定义名称enable password 123456./enable 密码Enable secret 654321/enable的加密密码(应该是乱码而不是654321这样)Ip subn

9、et-zero /允许使用全0子网(默认都是打开的)Ip name-server 172.16.8.1 172.16.8.2/三层交换机名字 Catalyst3550-12T1 对应的 IP 地址是 172.16.8.1Service dhcp/提供 DHCP 服务ip routing/启用三层交换机上的路由模块Exitinterface Port-channel 1/进入虚拟的以太通道组1Interface gigabitethernet 0/1/进入模块0上的吉比特以太口1channel-group 1 mode on/把这个接口放到快速以太通道组1Interface gigabiteth

10、ernet 0/2/同上 channel-group 1 mode onport-channel load-balance src-dst-ip/定义快速以太通道组的负载均衡方式Vtp mode server/定义VTP工作模式为sever模式Vtp domain centervtp/定义VTP域的名称为centervtpVlan 2 name vlan2/定义vlan并给vlan取名(如果不取名的话,vlan2的名字应该是vlan002)Vlan 3 name vlan3Vlan 4 name vlan4Vlan 5 name vlan5Vlan 6 name vlan6Vlan 7 nam

11、e vlan7Vlan 8 name vlan8Vlan 9 name vlan9Exit(依靠源和目的IP的方式)interface gigabitethernet 0/3/进入模块0上的吉比特以太口3interface gigabitethernet 0/4/同上interface gigbitethernet 0/5interface gigbitethernet 0/6interface gigbitethernet 0/7/同上/同上/进入模块0上的吉比特以太口7no shutdown/在生成树中,vlan6-9的开销定义为spanning-tree vlan 6-9 cost 10

12、0010000interface range gigabitethernet 0/8 - 10/进入模块 0 上的吉比特以太口8,9,10no shutdownspanning-tree portfast/在这些接口上使用 portfast (使用 portfast 以后,在生成树的时候不参加运算,直接成为转发状态)interface gigabitethernet 0/11/进入模块0上的吉比特以太口11interface gigabitethernet 0/12/同上interfacevlan 1/进入vlan 1的逻辑接口(不是物理接口,用来给vlan做路由用)ip address 17

13、2.16.1.7 255.255.255.0/配置IP地址和子网掩码no shutdownstandby 1 ip 172.16.1.9/开启了冗余热备份(HSRP),冗余热备份组1,虚拟路由器的IP地址为172.16.1.9standby 1 priority 110 preempt/定义这个三层交换机在冗余热备份组1中的优先级为110,preempt是用来开启抢占模式interface vlan 2/同上ip address 172.16.2.252 255.255.255.0no shutdownstandby 2 ip 172.16.2.254standby 2 priority 11

14、0 preemptip access-group 101 in/在入方向上使用扩展的访问控制列表101interface vlan 3/同上ip address 172.16.3.252 255.255.255.0 no shutdownstandby 3 ip 172.16.3.254standby 3 priority 110 preemptip access-group 101 ininterface vlan 4/同上ip address 172.16.4.252 255.255.255.0 no shutdownstandby 4 ip 172.16.4.254standby 4 p

15、riority 110 preemptip access-group 101 ininterface vlan 5ip address 172.16.5.252 255.255.255.0no shutdownstandby 5 ip 172.16.5.254standby 5 priority 110 preemptip access-group 101 ininterface vlan 6ip address 172.16.6.252 255.255.255.0no shutdownstandby 6 ip 172.16.6.254standby 6 priority 100 preemptinterface vlan 7ip address 172.16.7.252 255.255.255.0

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号