您好,欢迎来到爱go旅游网。
搜索
您的当前位置:首页华为9300接入交换机初始配置

华为9300接入交换机初始配置

来源:爱go旅游网
 [Quidway]Sysname NB-SW1-S9300 //设置名称 #

[NB-SW1- S9300] clock timezone beijing add 08:00:00 //时间设置 #

vlan 250 //配置网管vlan description TO S9300-NetManagement #

vlan 1483 //新建vlan description yw-BinWang-14-ALCXD-DSLAM-2 //vlan描述 #

interface Vlanif250 //配置网管接口地址 description TO S9303-NetManagement

ip address 61.130.38.38 255.255.255.252 //配置网管ip #

配置端囗镜像:

首先在全局模式下将一个端囗配置成观测端囗(整机支持两个观察端囗): [S9300]observe-port 1 interface GigabitEthernet x/x/x 然后再进入需要镜像的端囗配置镜像端囗:

[S9300-GigabitEthernet3/0/37]port-mirroring observe-port 1 both(支持出或入方向及双向流) 配置流镜像:

首先也是在全局模式下将一个端囗配置成观测端囗(整机支持两个观察端囗): [S9300]observe-port 1 interface GigabitEthernet x/x/x 然后再配置ACL将需要镜像的流匹配出来:

acl number 3000 //创建ACL rule 5 permit ip //增加一条规则 #

traffic classifier 1 operator and precedence 5 //创建流分类1 if-match 5 acl 3000 //匹配acl

#

traffic behavior 1 //创建流行为1 mirroring observing-port 1 #

traffic policy 1 //创建流策略1

classifier 1 behavior 1 //把创建流分类与创建流行为关联 最后进入此流进入或出去的端囗下发镜像规则:

[S9303-GigabitEthernet3/0/37]traffic-policy 1 inbound (支持出流量和入流量)

端口速率限制:

#

[S9300] interface GigabitEthernet 1/0/10

[S9300-GigabitEthernet1/0/10] broadcast-suppression cir 100 cbs 18800

#

[S9300] qos car qoscar1 cir 10000 cbs 10240

#

[S9300] interface GigabitEthernet 2/0/0

[S9300-GigabitEthernet2/0/0] qos car inbound qoscar1 #

interface eth-trunk 2

description To JH-YW-BW-BAS-SE800-4-DM1.MAN G2/8

portswitch //三层接口切换到二层工作模式 port link-type trunk

port trunk allow-pass vlan 1483 to 1494 1511 1513 to 1515 1528 1536 1587 #

interface GigabitEthernet1/0/1 eth-trunk 2 #

interface GigabitEthernet1/0/2 eth-trunk 2 #

interface GigabitEthernet1/0/19

description To JH-YW-BW-BAS-SE800-4-DM1.MAN G2/8 port link-type trunk

port trunk allow-pass vlan 1483 to 1494 1511 1513 to 1515 1528 1536 1587 #

interface GigabitEthernet1/0/1

description To yw-FuTian-MA5600-DSLAM

undo negotiation auto // 端口强制模式(强制模式只适用GE光口、千兆电口只能采用自协商)

port hybrid tagged vlan 32 // 透传Dslam管理vlan port hybrid untagged vlan 1400 //剥离回程报文外层vlan port vlan-stacking vlan 101 to 960 stack-vlan 1400 //对vlan 101-960打上外层vlan 1400 port vlan-stacking vlan 3600 stack-vlan 1400 //对vlan 3600打上外层vlan 1400 # router id 120.199.95.4 //指定router id #

interface Vlanif43 description To_QT-JR-S5352-07 ip address 120.199.95.110 255.255.255.252 ospf network-type p2p //选定链路网络类型为p2p模式 #

ospf cost 10 //设置链路开销值,也可以默认不设

interface LoopBack0 //创建LoopBack0接口与接口地址

ip address 120.199.95.4 255.255.255.255

#

ospf 10 //创建ospf进程 import-route static //引如静态路由(直连direct)

area 0.0.0.0 //选定area区域 network 120.199.95.108 0.0.0.3 //发布接口地址,并使能ospf #

silent-interface LoopBack0 //不向LoopBack0接口发送协议报文

network 120.199.95.4 0.0.0.0 //发布LoopBack0接口地址,并使能ospf

[S9300]isis //在全局模式下启用IS-IS [S9300-isis]network-entity 49.0001.1201.9909.5004.00 //配置网络实体名称

[S9300-isis]is-level level-1 //设置当前S9300工作在Level-1 [S9300-isis-1] import-route static cost 15 //引入静态路由,并设置cost值为15 #

interface Vlanif43 description To_QT-JR-S5352-07 ip address 120.199.95.110 255.255.255.252

isis enable //在端口模式下使能IS-IS

isis circuit-level level-1 //在端口模式下更改IS端口的层次,端口默认模式是Level-1-2层

isis cost 5 level-1 //链路开销为5

# ip address 120.199.95.4 255.255.255.255 isis enable

interface LoopBack0 //创建LoopBack0接口与接口地址

#

ip route-static 0.0.0.0 0.0.0.0 172.135.xxx.xxx //配置默认路由 #

info-center source default channel 2 log level warning //配置syslog信息 info-center loghost source Vlanif 26

info-center loghost 172.200.100.6 facility local6 #

snmp-agent //配置综合网管 snmp-agent local-engineid 800007DB000FE23F4C

snmp-agent community read nbroot snmp-agent sys-info contact HuaWei 800-8302118

snmp-agent sys-info location NB-A-YJXQ-3552-1 //设置设备名称 snmp-agent sys-info version all

snmp-agent target-host trap address udp-domain 172.200.xxx.xxx udp-port 161 params

securityname public //设置网管服务器地址 snmp-agent trap enable

#

super password level 3 cipher XXXXX //配置登录信息

#

aaa local-user XXX password cipher XXXXX

local-user XXX service-type terminal telnet authentication-scheme default

local-user XXX level 1

#

user-interface vty 0 4 authentication-mode aaa idle-time 30 0

protocol inbound telnet #

ntp-service unicast-server 172.135.xxx.xxx //配置网络时钟

When you are old and grey and full of sleep, And nodding by the fire, take down this book, And slowly read, and dream of the soft look Your eyes had once, and of their shadows deep; How many loved your moments of glad grace, And loved your beauty with love false or true, But one man loved the pilgrim soul in you, And loved the sorrows of your changing face; And bending down beside the glowing bars, Murmur, a little sadly, how love fled And paced upon the mountains overhead And hid his face amid a crowd of stars.

The furthest distance in the world Is not between life and death But when I stand in front of you Yet you don't know that I love you.

The furthest distance in the world Is not when I stand in front of you Yet you can't see my love

But when undoubtedly knowing the love from both Yet cannot be together.

The furthest distance in the world Is not being apart while being in love But when I plainly cannot resist the yearning Yet pretending you have never been in my heart. The furthest distance in the world Is not struggling against the tides But using one's indifferent heart To dig an uncrossable river For the one who loves you.

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- igat.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务