三、路由配置
3.1 配置路由器系统地址
系统的地址默认名字为system,掩码为32位的IP地址。
SR#configure router interface \
3.2 配置网络接口
注:将下列步骤作为指导,你可以在系统中配置多个interface 3.2.1 配置interface名字及描述
SR# configure router interface
SR>config>router>if# description To SM-LD-SE800-A-1.MAN GE (GE-0/1/0)
3.2.2 配置IP地址
SR>config>router>if$ address
3.2.3 配置关联端口
SR>config>router>if$ port
3.2.4 查看配置的路由器接口
SR# show router interface
Confidential
第 11 页 共 26 页 IPD
3.3 配置静态及 OSPF路由协议 3.3.1 配置静态路由
SR>config>router>static-route 1.1.1.1 255.255.255.255 next-hop 1.1.1.2
3.3.2 配置OSPF区域
SR>config>router# ospf
SR>config>router>ospf$ area 0.0.0.0
SR>config>router>ospf>area# interface system SR>config>router>ospf>area# exit SR>config>router>ospf# area 0.0.0.20
SR>config>router>ospf>area# interface to-104
3.3.3 配置ospf接口cost值
SR# configure router ospf area 0.0.0.0
SR>configure>router>ospf>area# interface
3.3.4 配置一个stub区域
SR>config>router# ospf
SR>config>router>ospf$ area 0.0.0.20 SR>config>router>ospf>area# stub SR>config>router>ospf>area>stub# exit
3.3.5 配置NSSA区域
SR>config>router# ospf
SR>config>router>ospf$ area 0.0.0.20 SR>config>router>ospf>area# nssa
SR>config>router>ospf>area>nssa# no redistribute-external
Confidential
第 12 页 共 26 页 IPD
3.3.6 配置虚链路
SR>config>router# ospf
SR>config>router>ospf$ area 0.0.0.0
SR>config>router>ospf>area# virtual-link 10.0.0.6 transit-area 0.0.0.50 SR>config>router>ospf>area>virtual-link$ no shutdown SR>config>router>ospf>area>virtual-link# hello-interval 9 SR>config>router>ospf>area>virtual-link# dead-interval 40 SR>config>router>ospf>area>virtual-link# exit
3.3.7 配置认证
SR>config>router# ospf
SR>config>router>ospf$ area 0.0.0.40
SR>config>router>ospf>area# interface “to-274ferg”
SR>config>router>ospf>area>if# authentication-type password SR>config>router>ospf>area>if# authentication-key dilbert SR>config>router>ospf>area>if# no shutdown SR>config>router>ospf>area>if# exit
3.3.8 配置路由聚合
SR>Config>Router>ospf>area>area-range ip-prefix/mask advertise
3.3.9 配置静态路由注入到
configure router
policy-options begin
policy-statement \ entry 10 from
protocol static exit
action accept type 1 metric 100 exit exit
Confidential
第 13 页 共 26 页
IPD
OSPF路由协议
default-action reject
exit commit exit
exit all
configure router
static-route 200.1.1.0/24 black-hole ospf
asbr
export \ exit exit all
3.3.10 查看运行在ospf协议下的接口
SR# show router ospf interface
3.3.11 查看ospf邻居建立关系
SR#show router ospf neighbor
3.3.12 查看ospf路由表
SR# show router route-table protocol ospf
3.4 配置 IS-IS 3.4.1 配置区域ID
SR# configure router isis Confidential
第 14 页 共 26 页
IPD
SR# config>route>isis$ area-id 49.0001
3.4.2 配置路由器等级能力
默认情况下,7750为L1/L2路由器。这里你能够将其配置为只用于L1或只用于L2。配置为L1:
SR# config>router>isis$ level-capability level-1
3.4.3 配置IS-IS接口
SR >config>router>isis$ interface system SR>config>router>ospf>area>if$ exit all
3.4.4 查看ISIS下的接口
SR# show router isis interface
3.4.5 添加已经配置到ISIS的每个网络接口
注:将下列步骤作为指导,你可以在ISIS下配置多个interface
SR# configure router isis
SR>config>router>isis>if# interface
3.4.6 查看ISIS邻接关系
SR# show router isis adjacency detail
3.4.7 查看ISIS路由表
SR# show router route-table protocol isis
Confidential
第 15 页 共 26 页
IPD

