Juniper EX系列交换机配置三层路由协议操作
静态路由协议
?手工添加到路由表
?下一跳必须有效
?所以的配置在 routing-options ?级别
Syntax:
[edit]
routing-options {
????static {
????????defaults {
static-options;
????????}
????????route destination-prefix?{
????????????next-hop next-hop;
????????????qualified-next-hop address?{
????????????????metric metric;
????????????????preference preference;
????????????}
static-options;
????????}
????}
}
Example:
[edit]
user@host# show
routing-options {
????static {
????????route 0.0.0.0/0 next-hop 192.168.0.1;
????}
}
???????RIP配置
— 最小 RIP 配置:
[edit protocol]
???protocols {
rip {
group group-name {
neighbor?interface-name;
}
}
}
— RIP ?重发布和 Export 策略
policy-options {
????policy-statement statics-to-rip {
????????from protocol static;
????????????????then accept;
????????}
}
— 应用策略的邻居
protocols {
????????rip {
????????group rip-neighbors {
????????????????????????export statics-to-rip;
????????????neighbor fe-0/0/0.0;
????????????neighbor fe-0/0/1.0;
????????????????}
????????}
}
查看RIP路由表
user@Riesling> show route protocol rip
inet.0: 27 destinations, 27 routes (27 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.2.0/24 ?????*[RIP/100] 00:07:25, metric 2
????????????????????> to 172.16.1.2 via fe-0/0/0.0
192.168.8.1/32 ????*[RIP/100] 00:07:25, metric 2
????????????????????> to 172.16.1.2 via fe-0/0/0.0
192.168.24.1/32 ???*[RIP/100] 00:00:25, metric 3
????????????????????> to 172.16.1.2 via fe-0/0/0.0
???????Open Shortest Path First (OSPF)
开放式最短路径优先协议是一种链路状态路由选择协议,它产生于 I P 网络,发展成用于单个自治系统来分发路由选择信息。
单区域
[edit]
user@host# set protocols ospf area 0 interface ge-0/0/0
[edit]
user@host# show protocols?ospf
ospf {
????area 0.0.0.0 {
????????interface ge-0/0/0.0;
????????}
}
配置 OSPF 多区域
[edit]
user@host# show protocols ospf ?
ospf {
????area 0.0.0.0 {
????????interface ge-0/0/0.0;
????????}
}
[edit]
user@host# set protocols ospf area 1 interface at-0/1/1.100 ?
[edit]
user@host# show protocols ospf ?
ospf {
????area 0.0.0.0 {
????????interface ge-0/0/0.0;
????????}
????area 0.0.0.1 {
????????interface at-0/1/1.100;
????????}
配置 a Stub Area
[edit protocols ospf area area-id?]
stub <default-metric metric> <(no-summaries | summaries)>;
配置 a Not-So-Stubby Area
[edit protocols ospf area area-id?]
nssa {
area-range network/mask-length?<restrict>;
default-lsa {
default-metric metric;
metric-type type;
type-7;
}
(no-summaries | summaries);
}
配置 OSPF Virtual Link
当网络直接超过3 area,使用virtual Link 连接防止环路。
[edit protocols ospf area 0.0.0.0]
virtual-link neighbor-id router-id?transit-area area-id;
配置 OSPF Router Interfaces
d Configuring an Interface on a Broadcast or Point-to-Point Network
[edit protocols ospf area area-id?]
interface interface-name;
d Configuring an Interface on a Point-to-Multipoint Network
[edit protocols ospf area 0.0.0.0]
interface interface-name?{
neighbor address;
}
d Configuring an Interface on a Nonbroadcast, Multiaccess Network
[edit protocols ospf area 0]
interface interface-name?{
interface-type nbma;
neighbor address?<eligible>;
poll-interval seconds;
}
配置验证
可以使simple和MD5
[edit protocols ospf area area-id?]
authentication-type authentication;
[edit protocols ospf area area-id?interface interface-name]
authentication {
md5 key-id?{
key [ key-values?];
}
simple-password key-id;
}
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!