首页 科技问答 94270,求一个ospf配置

94270,求一个ospf配置

科技问答 179
1676435365,

新手求大神给个OSPF的拓扑图跟配置,最好详细点

2

  OSPF基本功能配置举例

1. 组网需求

·     所有的交换机都运行OSPF,并将整个自治系统划分为3个区域。

·     其中Switch A和Switch B作为ABR来转发区域之间的路由。

·     配置完成后,每台交换机都应学到AS内的到所有网段的路由。

2. 组网图

图1-8 OSPF基本功能配置组网图

 

3. 配置步骤

     配置各接口的IP地址(略)

2)     配置OSPF基本配置

# 配置Switch A。

<SwitchA> system-view

[SwitchA] router id 1

[SwitchA] ospf

[SwitchA-ospf-1] area

[SwitchA-ospf-1-area-

[SwitchA-ospf-1-area-

[SwitchA-ospf-1] area 1

[SwitchA-ospf-1-area-

[SwitchA-ospf-1-area-

[SwitchA-ospf-1] quit

# 配置Switch B。

<SwitchB> system-view

[SwitchB] router id 1

[SwitchB] ospf

[SwitchB-ospf-1] area

[SwitchB-ospf-1-area-

[SwitchB-ospf-1-area-

[SwitchB-ospf-1] area 2

[SwitchB-ospf-1-area-

[SwitchB-ospf-1-area-

[SwitchB-ospf-1] quit

# 配置Switch C。

<SwitchC> system-view

[SwitchC] router id 1

[SwitchC] ospf

[SwitchC-ospf-1] area 1

[SwitchC-ospf-1-area-

[SwitchC-ospf-1-area-

[SwitchC-ospf-1-area-

[SwitchC-ospf-1] quit

# 配置Switch D。

<SwitchD> system-view

[SwitchD] router id 1

[SwitchD] ospf

[SwitchD-ospf-1] area 2

[SwitchD-ospf-1-area-

[SwitchD-ospf-1-area-

[SwitchD-ospf-1-area-

[SwitchD-ospf-1] quit

4. 验证配置

# 查看Switch A的OSPF邻居。

[SwitchA] display ospf peer verbose

 

          OSPF Process 1 with Router ID 1

                  Neighbors

 

 Area

 Router ID: 1

   State: Full  Mode: Nbr is master  Priority: 1

   DR: 1

   Options is

   Dead timer due in 37  sec

   Neighbor is up for

   Authentication Sequence: [

   Neighbor state change count: 5

 

 Area

 Router ID: 1

   State: Full  Mode: Nbr is master  Priority: 1

   DR: 1

   Options is

   Dead timer due in 32  sec

   Neighbor is up for

   Authentication Sequence: [

   Neighbor state change count: 5

# 查看Switch A的OSPF路由信息。

[SwitchA] display ospf routing

 

          OSPF Process 1 with Router ID 1

                   Routing Table

 

                Topology base MTID

 

 Routing for network

 Destination        Cost     Type    NextHop         AdvRouter       Area

 1

 1

 1

 1

 1

 

 Total nets: 5

 Intra area: 3  Inter area: 2  ASE:

# 查看Switch D的OSPF路由信息。

[SwitchD] display ospf routing

 

          OSPF Process 1 with Router ID 1

                   Routing Table

 

                Topology base MTID

 

 Routing for network

 Destination        Cost     Type    NextHop         AdvRouter       Area

 1

 1

 1

 1

 1

 

 Total nets: 5

 Intra area: 2  Inter area: 3  ASE:

# 在Switch D上使用Ping进行测试连通性。

[SwitchD] ping 1

Ping 1

56 bytes from 1

56 bytes from 1

56 bytes from 1

56 bytes from 1

56 bytes from 1

 

--- Ping statistics for 1

5 packets) transmitted, 5 packets) received,

round-trip min/avg/max/std-dev =

2

谢谢

9427

有具体组网需求吗?可以参考H3C官网上面配置指导的OSPF章节,有常用的OSPF配置

2

CRM论坛(CRMbbs.com)——一个让用户更懂CRM的垂直性行业内容平台,CRM论坛致力于互联网、客户管理、销售管理、SCRM私域流量内容输出5年。 如果您有好的内容,欢迎向我们投稿,共建CRM多元化生态体系,创建CRM客户管理一体化生态解决方案。,求一个ospf配置