《h3c ospf基本配置》由会员分享,可在线阅读,更多相关《h3c ospf基本配置(3页珍藏版)》请在金锄头文库上搜索。
1、RTA 配置如下:sys System View: return to User View with Ctrl+Z.H3Csysname RTARTAinterface LoopBack 0RTA-LoopBack0ip address 1.1.1.1 32RTA-LoopBack0quit RTAinterface Ethernet 0/0RTA- Ethernet 0/0ip address 10.0.0.1 24RTA- Ethernet 0/0quit RTAinterface Ethernet 0/1RTA- Ethernet 0/1ip address 20.0.0.1 24RTA
2、- Ethernet 0/1quit RTArouter id 1.1.1.1RTAospf 1RTA-ospf-1area 0RTA-ospf-1-area-0.0.0.0network 1.1.1.1 0.0.0.0RTA-ospf-1-area-0.0.0.0network 10.0.0.0 0.0.0.255RTA-ospf-1-area-0.0.0.0network 20.0.0.0 0.0.0.255RTB 配置如下:H3Csysname RTBRTBinterface Ethernet 0/0RTB- Ethernet 0/0RTB- Ethernet 0/0ip address
3、 10.0.0.2 24RTB- Ethernet 0/0quit RTBinterface Ethernet0/1RTB- Ethernet0/1ip address 30.0.0.1 24RTB- Ethernet0/11quit RTBinterface LoopBack 0RTB-LoopBack0ip address 2.2.2.2 32 RTB-LoopBack0quit RTBrouter id 2.2.2.2RTBospf 1RTB-ospf-1area 0RTB-ospf-1-area-0.0.0.0network 2.2.2.2 0.0.0.0RTB-ospf-1-area
4、-0.0.0.0network 10.0.0.0 0.0.0.255RTB-ospf-1-area-0.0.0.0network 30.0.0.0 0.0.0.255RTB-ospf-1-area-0.0.0.0quitRTC 配置如下:H3Csysname RTCRTCinterface Ethernet0/0RTC- Ethernet0/0ip address 30.0.0.2 24RTC- Ethernet0/0quit RTCinterface Ethernet0/1RTC- Ethernet0/1ip address 20.0.0.2 24RTC- Ethernet0/1quit R
5、TCinterface LoopBack 0RTC-LoopBack0ip addRTC-LoopBack0ip address 3.3.3.3 32 RTC-LoopBack0quit RTCrouter id 3.3.3.3RTCospf 1RTC-ospf-1area 0RTC-ospf-1-area-0.0.0.0network 3.3.3.3 0.0.0.0RTC-ospf-1-area-0.0.0.0network 30.0.0.0 0.0.0.255RTC-ospf-1-area-0.0.0.0network 20.0.0.0 0.0.0.255查看命令如下:RTAdisplay
6、 ip routing-table Routing Tables: Public Destinations : 11 Routes : 11Destination/Mask Proto Pre Cost NextHop Interface1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop02.2.2.2/32 OSPF 10 1562 10.0.0.2 eth0/03.3.3.3/32 OSPF 10 1562 20.0.0.2 eth0/110.0.0.0/24 Direct 0 0 10.0.0.1 eth0/010.0.0.1/32 Direct 0 0 127
7、.0.0.1 InLoop010.0.0.2/32 Direct 0 0 10.0.0.2 eth0/020.0.0.0/24 Direct 0 0 20.0.0.1 eth0/120.0.0.1/32 Direct 0 0 127.0.0.1 InLoop020.0.0.2/32 Direct 0 0 20.0.0.2 eth0/1127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0RTAdisplay ospf brief OSPF Process 1 with Router ID
8、 1.1.1.1 OSPF Protocol Information RouterID: 1.1.1.1 Border Router: Route Tag: 0 Multi-VPN-Instance is not enabled Applications Supported: MPLS Traffic-Engineering SPF-schedule-interval: 5 0 5000 LSA generation interval: 5 0 5000 LSA arrival interval: 1000 Default ASE parameters: Metric: 1 Tag: 1 Ty
9、pe: 2 Route Preference: 10 ASE Route Preference: 150 SPF Computation Count: 8 RFC 1583 Compatible Graceful restart interval: 120 Area Count: 1 Nssa Area Count: 0 ExChange/Loading Neighbors: 0 Area: 0.0.0.0 (MPLS TE not enabled) Authtype: None Area flag: Normal SPF Scheduled Count: 8 ExChange/Loading
10、 Neighbors: 0 Interface: 1.1.1.1 (LoopBack0) Cost: 1 State: Loopback Type: PTP MTU: 1536 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 Interface: 10.0.0.1 (ethernet0/0) - 10.0.0.2 Cost: 1562 State: P-2-P Type: PTP MTU: 1500 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 Interface: 20.0.0.1 (ethernet0/1) - 20.0.0.2 Cost: 1562 State: P-2-P Type: PTP MTU: 1500 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1