标签:http view table mod war info ESS image play
一.OSPF配置1.在R1,R2,R3上配置接口ip
<r1>system-view
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip address 10.1.1.1 24
<r2>system-view
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip address 10.1.1.2 24
[r2-GigabitEthernet0/0/0]quit
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 20.1.1.1 24
[r3]interface GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]ip address 20.1.1.2 24
2..在R1,R2,R3上配置OSPF协议
[R1]ospf 100
[R1-ospf-100]area 0
[R1-ospf-100-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R1-ospf-100-area-0.0.0.0]quit
[R2]ospf 100
[R2-ospf-100]area 0
[R2-ospf-100-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R2-ospf-100-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[R2-ospf-100-area-0.0.0.0]quit
[R3]ospf 100
[R3-ospf-100]area 0
[R3-ospf-100-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[R3-ospf-100-area-0.0.0.0]quit
查看OSPF邻居
[R3]display ospf peer
查看OSPF路由
[R3]display ip routing-table
二.修改修改OSPF的RID
[R1]ospf 100 router-id 1.1.1.1
RID修改后不会立即生效,需要重启OSPF进程新的RID才会生效)
重启OSPF进程:
<R1>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
三.修改基准带宽
1.在R1,R2,R3上修改基准带宽
[R1]ospf 100
[R1-ospf-100]bandwidth-reference 10000
[R2]ospf 100
[R2-ospf-100]bandwidth-reference 10000
[R3]ospf 100
[R3-ospf-100]bandwidth-reference 10000
四.OSPF静默接口
1.设置OSPF静默接口:
[R2]ospf 100
[R2-ospf-100]silent-interface g0/0/1
五.修改OSPF计时器
1.在R1,R2上修改计时器
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf timer hello 20
[R1-GigabitEthernet0/0/0]ospf timer dead 60
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf timer hello 20
[R2-GigabitEthernet0/0/0]ospf timer dead 60
OSPF要求hello时间,dead时间邻居之间要一样,所以一改就得改两个
六.修改OSPF的DR,BDR角色
1.在R2上修改OSPF的DR接口优先级
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf dr-priority 0
七.OSPF认证
1.在R1上配置OSPF接口认证
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher huawei
2.在R2上配置OSPF区域认证
[R2]ospf 100
[R2-ospf-100]area 0
[R2-ospf-100-area-0.0.0.0]authentication-mode md5 1 cipher huawei
标签:http view table mod war info ESS image play
原文地址:https://blog.51cto.com/13212728/2517156