教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 实用模板 >

城域网BAS及SR命令集

来源:网络收集 时间:2025-12-27
导读: 学网络的看看 城域网BRAS及SR命令集 1 BRAS部分 1.1 华为ME60\5200G相关命令 ※ 查看所有配置 display current-configuration ※ 查看接口配置 display current-configuration interface #后面跟端口号 ※ OSPF相关查看命令 display current-configuration c

学网络的看看

城域网BRAS及SR命令集

1 BRAS部分

1.1 华为ME60\5200G相关命令

※ 查看所有配置

display current-configuration

※ 查看接口配置

display current-configuration interface ××× #后面跟端口号

※ OSPF相关查看命令

display current-configuration configuration ospf #查看OSPF配置

display ospf peer #查看OSPF领居

display ospf interface ×××

display ip routing-table protocol ospf

※ BGP相关查看命令

display current-configuration configuration bgp #查看BGP配置

display bgp peer #查看BGP领居

※ 查看路由

display ip routing-table X.X.X.X #查看路由表

display bgp routing-table X.X.X.X #查看BGP表

dis ip routing-table protocol static #查看静态路由

dis ip routing-table protocol direct #查看直连路由

dis bgp routing-table peer X.X.X.X advertised-routes # Routes advertised to the remote peer dis bgp routing-table peer X.X.X.X received-routes #Routes received from the remote peer

※ 配置接口

interface GigabitEthernet3/0/0

description To::×××××

undo shutdown

interface GigabitEthernet3/0/0.10

vlan-type dot1q 10

mtu 1586

ip address 61.157.254.177 255.255.255.252

ospf cost 10

ospf authentication-mode md5 1 cipher abcd #OSPF接口认证,密钥为abcd ospf network-type p2p

学网络的看看

mpls

mpls ldp

※ 配置静态路由

#ip route-static命令用来配置单播静态路由

<Quidway> system-view

[Quidway] ip route-static 192.168.0.1 255.255.255.0 172.16.0.1

[Quidway] ip route-static 192.168.0.1 255.255.255.0 Pos1/0/0 172.16.0.1

※ 配置OSPF

ospf 1

area 0.0.0.0

network 119.119.1.1 0.0.0.0

ospf 1

bandwidth-reference 100000 #100G

ospf 1

maximum load-balancing 16 #配置OSPF负载均衡条目

※ 配置BGP

# 指定BGP本端及对端AS号、报文的源接口、领居描述及启用领居认证 <Quidway> system-view

[Quidway] bgp 100

[Quidway-bgp] peer 1.1.1.1 as-number 100

[Quidway-bgp] peer 1.1.1.1 connect-interface LoopBack0

[Quidway-bgp] peer 1.1.1.1 description test

[Quidway-bgp] peer 1.1.1.1 password cipher abc

# 对等体组的建立

<Quidway> system-view

[Quidway] bgp 100

[Quidway-bgp] router-id 5.5.5.5

[Quidway-bgp] group noc external #建立EBGP

[Quidway-bgp] peer noc as-number 200

[Quidway-bgp] peer noc connect-interface LoopBack0

[Quidway-bgp] peer noc ebgp-max-hop 2 #配置EBGP允许最大跳数为2

[Quidway-bgp] peer 1.1.1.1 group noc

[Quidway-bgp] peer 1.1.1.1 description test

[Quidway-bgp] peer 1.1.1.1 password cipher abc

[Quidway-bgp] peer 2.2.2.2 group noc

[Quidway-bgp] peer 2.2.2.2 description test1

[Quidway-bgp] peer 2.2.2.2 password cipher abc

学网络的看看

# 网段发布

<Quidway> system-view

[Quidway] bgp 100

[Quidway-bgp] ipv4-family unicast

[Quidway-bgp-af-ipv4] undo synchronization #关闭BGP同步功能

[Quidway-bgp-af-ipv4] reflector cluster-id 5.5.5.5 #配置反射器ID

[Quidway-bgp-af-ipv4] maximum load-balancing 8 #设置BGP等价路由条数

[Quidway-bgp-af-ipv4] peer noc enable #使能对等体组noc

[Quidway-bgp-af-ipv4] peer noc reflect-client #配置对等体组noc为反射客户端

[Quidway-bgp-af-ipv4] peer noc advertise-community #配置通告团体属性

[Quidway-bgp-af-ipv4] network 10.0.0.0 255.255.0.0 # network方式发布本地路由

[Quidway-bgp-af-ipv4] network 10.1.0.0 255.255.0.0

1.2 Juniper ERX\E320相关命令

※ 查看所有配置

show configuration

※ 查看接口配置

show configuration interface ×××

※ OSPF相关查看命令

show configuration category ip-protocols ospf #查看OSPF配置

show ip ospf neighbors

show ip ospf interface ×××

show ip route ospf

※ BGP相关查看命令

show configuration category ip-protocols bgp #查看BGP配置

show ip bgp neighbors

show ip bgp neighbors A.B.C.D

show ip bgp

※ 查看路由

show ip route X.X.X.X #查看路由表

show ip route static

show ip route local #查看直连路由

show ip bgp neighbors X.X.X.X advertised-routes

show ip bgp neighbors X.X.X.X received-routes # before inbound policy

show ip bgp neighbors X.X.X.X routes # after inbound policy

※ 配置接口

学网络的看看

interface gigabitEthernet 5/0

mtu 1608

duplex full

speed 1000

load-interval 30

qos-profile "SC-QOS"

encapsulation vlan

interface gigabitEthernet 5/0.1

vlan id 1

ip address 61.139.34.90 255.255.255.252

no ip proxy-arp

no ip redirects

no ip unreachables

ip ospf network point-to-point

ip ospf message-digest-key 1 md5 8 i>u^^PD7Ii+}7QiVwyx$S

ip ospf authentication message-digest

ip policy input "IN_DSCP"

ip policy output "OUT_DSCP"

ip policy secondary-input "Internet_Local_Input"

※ 配置静态路由

ip route 10.10.10.0 255.255.255.0 20.20.20.0 #下一跳可以为接口

※ 配置OSPF

router ospf 1

router-id *.*.*.*

ospf auto-cost reference-bandwidth 100000 #100G

ospf log-adjacency-changes

network *.*.*.* 0.0.0.0 area 0 #0.0.0.0为反掩码

※ 配置BGP

router bgp 65***

bgp router-id X.X.X.X

bgp log-neighbor-changes

no auto-summary

no synchronization

neighbor “地市_MAN_All” peer-group

neighbor “地市_MAN_All” remote-as **

neighbor “地市_MAN_All” send-community

neighbor *.*.*.* peer-group “地市_MAN_All”

neighbor *.*.*. …… 此处隐藏:5820字,全部文档内容请下载后查看。喜欢就下载吧 ……

城域网BAS及SR命令集.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/1335040.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)