- 经验
- 5
- 分贝
- 0
- 家园分
- 20
- 在线时间:
- 6 小时
- 最后登录:
- 2022-2-25
- 帖子:
- 3
- 精华:
- 0
- 注册时间:
- 2014-10-1
- UID:
- 1056826
注册:2014-10-1
|
diag modexecute mp master agt-cmd a-set-bd-auto `进行自动插板操作
con ter ‘进入全局配置模式’
username who password who privilege 1 ‘设置用户名和密码以及用户权限等级,数值越大权限越高,15为最高’
username zte password ecc privilege 15
username ptn password ptn privilege 1
show username ‘查看配置的所有用户’
hostname zonghelou1-63 ‘设置网元设备名称以汉语拼音方式表示’
multi-user configure ‘配置多用户配置模式’
snmp-server view AllView internet included
snmp-server community public view AllView ro ‘设置SNMP只读模式的读写共同体’
snmp-server community private view AllView rw ‘设置SNMP可读可写模式的读写共同体’
snmp-server enable trap SNMP
snmp-server enable trap VPN
snmp-server enable trap BGP
snmp-server enable trap OSPF
snmp-server enable trap RMON
snmp-server enable trap STALARM
snmp-server packetsize 8192 ‘设置SNMP数据包为最大值8192’
logging on
logging trap-enable informational
clock timezone BEIJING 8 ‘设置设备系统时间的时区’
interface lct_13/4
ip address 192.192.192.11 255.255.255.0 ‘设置LCT口IP地址,习惯都设置为192.192.192.11/24’
exit
interface loopback1
ip address 10.9.1.250 255.255.255.255 ‘设置loopback1地址为10.9.1.250,作为业务用ID’
exit
mpls traffic-eng static-lsrid loopback1 ‘设置静态业务基础配置
tmpls oam enable
tmpls oam send enable
tmpls oam receive enable
tmpls oam channel-type 32762 mel 7 tc 7
mpls traffic-eng tunnels `动态TE基础配置
interface loopback2
ip address 139.9.1.250 255.255.255.255 ‘设置loopback2地址为139.9.1.250,作为监管供ID。’
exit
vlan 3001 ‘创建监控VLAN’
exit
vlan 3002
exit
vlan 10 `创建业务VLAN
exit
vlan 20
exit
interface vlan 10 `业务VLAN相关配置,开通业务时需要留意te相关内容必须配置。
ip address 10.1.1.1 255.255.255.0
out_index 20
exit
interface vlan 20 `业务VLAN相关配置,开通业务时需要留意te相关内容必须配置。
ip address 20.1.1.1 255.255.255.0
out_index 20
exit
interface vlan 3001
ip address 139.9.1.6 255.255.255.252 ‘创建监控VLAN三层接口IP地址’
exit
interface vlan 3002
ip address 139.9.1.9 255.255.255.252
exit
interface xgei_9/1
mcc-vlanid 3001 ‘不会生效,仅仅能够标明此vlan用于监控’
switchport mode trunk ‘设置端口模式’
switchport trunk vlan 3001
switchport trunk vlan 10 `业务VLAN相关配置,开通业务时需要留意te相关内容必须配置。
switchport trunk native vlan 3001 ‘端口native vlan一定不能为默认的1’
exit
interface xgei_10/1
mcc-vlanid 3002
switchport mode trunk
switchport trunk vlan 3002
switchport trunk vlan 20 `业务VLAN相关配置,开通业务时需要留意te相关内容必须配置。
switchport trunk native vlan 3002
exit
vlan 3006 ‘如果是接入网元,且使用业务端口连接网管进行监控,创建VLAN’
exit
interface vlan 3006 ‘如果是接入网元,且使用业务端口连接网管进行监控,创建三层接口’
ip address 139.9.255.156 255.255.255.0
exit
interface gei_7/8 ‘如果是接入网元,且通过业务端口连接网管进行监控,需要设置和网管连接的端口’
mcc-vlanid 3006
switchport mode access ‘设置端口模式为ACCESS’
switchport access vlan 3006
exit
no dcn enable ‘关闭设备DCN功能,如果需要使用DCN功能需要配置打开’
interface qx1
ip address 139.9.255.156 255.255.255.0 ‘如果是接入网元,且使用QX口连接网管监控,需要设置QX口ip地址,同时需要上面的关闭DCN功能命令配合’
exit
//////上面两种针对接入网元的监控方式根据实际情况配置一种
line telnet idle-timeout 30 ‘设置最大用户无操作下线时间’
line telnet absolute-timeout 0 ‘设置最大用户操作时间’
span dis ‘禁止spanning tree功能’
router ospf 1 ‘添加路由宣告’
router-id 139.9.1.250
network 139.9.1.250 0.0.0.0 area 0 ‘对loopback2进行路由宣告,注意此处反掩码为0.0.0.0’
network 139.9.1.4 0.0.0.3 area 0 ‘对接口ip进行路由宣告’
network 139.9.1.8 0.0.0.3 area 0
network 139.9.255.0 0.0.0.255 area 0
passive-interface vlan 3006 ‘如果是接入网元,且通过业务端口和网管连接需将接入端口设置为PASSIVE,禁止子网间相互学习路由’
exit
interface gei_1/1 '对各个端口的默认VLAN进行隔离,这里是满配置,现场需根据实际情况进行选择配置‘
switchport access vlan2
exit
interface gei_1/2
switchport access vlan3
exit
interface gei_1/3
switchport access vlan4
exit
interface gei_1/4
switchport access vlan5
exit
interface gei_1/5
switchport access vlan6
exit
interface gei_1/6
switchport access vlan7
exit
interface gei_1/7
switchport access vlan8
exit
interface gei_1/8
switchport access vlan9
exit
interface gei_2/1
switchport access vlan10
exit
interface gei_2/2
switchport access vlan11
exit
interface gei_2/3
switchport access vlan12
exit
interface gei_2/4
switchport access vlan13
exit
interface gei_2/5
switchport access vlan14
exit
interface gei_2/6
switchport access vlan15
exit
interface gei_2/7
switchport access vlan16
exit
interface gei_2/8
switchport access vlan17
exit
interface gei_3/1
switchport access vlan18
exit
interface gei_3/2
switchport access vlan19
exit
interface gei_3/3
switchport access vlan20
exit
interface gei_3/4
switchport access vlan21
exit
interface gei_4/1
switchport access vlan22
exit
interface gei_4/2
switchport access vlan23
exit
interface gei_4/3
switchport access vlan24
exit
interface gei_4/4
switchport access vlan25
exit
interface gei_2/1 '对所有端口进行未知组播,未知单播限速,限制带宽为500kbps,对承载的业务类型为广播或者组播业务,需要打开限速设置‘
broadcast-limit cir 500 cbs 4
unknown-multicast cir 500 cbs 4
unknown-unicast cir 500 cbs 4
exit
exit
write
|
|