gpt4 book ai didi

使用ensp搭建路由拓扑,并使用isis协议实现网络互通实操

转载 作者:我是一只小鸟 更新时间:2023-10-05 15:01:55 37 4
gpt4 key购买 nike

转载请注明出处:

1.通过拓扑搭建如下拓扑:

                             。

其中R7、R8为L1,R6为L1/2,R9为L2.

2.配置isis实现网络互通

R7配置如下:

                          [Huawei]isis 
                          
                            1
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]di th
#
isis 
                          
                          
                            1
                          
                          
                            is
                          
                          -level level-
                          
                            1
                          
                          
                            
 network
                          
                          -entity 
                          
                            10.0000
                          
                          .
                          
                            0000.0001
                          
                          .
                          
                            00
                          
                          
                            
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]quit    
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
 ip address 
                          
                          
                            10.1
                          
                          .
                          
                            1.2
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          ]
                        

  R8配置如下:

                          
                            [Huawei]
[Huawei]isis 
                          
                          
                            1
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]di th
#
isis 
                          
                          
                            1
                          
                          
                            is
                          
                          -level level-
                          
                            1
                          
                          
                            
 network
                          
                          -entity 
                          
                            10.0000
                          
                          .
                          
                            0000.0002
                          
                          .
                          
                            00
                          
                          
                            
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
 ip address 
                          
                          
                            10.1
                          
                          .
                          
                            2.2
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          ]
                        

  R6配置如下:

                          [Huawei]isis 
                          
                            1
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]di th
#
isis 
                          
                          
                            1
                          
                          
                            
 network
                          
                          -entity 
                          
                            10.0000
                          
                          .
                          
                            0000.0003
                          
                          .
                          
                            00
                          
                          
                            
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
 ip address 
                          
                          
                            10.1
                          
                          .
                          
                            1.1
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            
 ip address 
                          
                          
                            10.1
                          
                          .
                          
                            2.1
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           GigabitEthernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
[Huawei
                          
                          -GigabitEthernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           GigabitEthernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
 ip address 
                          
                          
                            192.168
                          
                          .
                          
                            0.1
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -GigabitEthernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          ]
                        

  R9配置如下:

                          <Huawei>
                          
                            sys
Enter system view, 
                          
                          
                            return
                          
                           user view with Ctrl+
                          
                            Z.
[Huawei]isis 
                          
                          
                            1
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]di th
#
isis 
                          
                          
                            1
                          
                          
                            is
                          
                          -level level-
                          
                            2
                          
                          
                            
 network
                          
                          -entity 
                          
                            20.0000
                          
                          .
                          
                            0000.0004
                          
                          .
                          
                            00
                          
                          
                            
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -isis-
                          
                            1
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            
 ip address 
                          
                          
                            192.168
                          
                          .
                          
                            0.2
                          
                          
                            255.255
                          
                          .
                          
                            255.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            0
                          
                          
                            ]quit
[Huawei]
                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            ]di th
#

                          
                          
                            interface
                          
                           Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          
                            
 ip address 
                          
                          
                            172.16
                          
                          .
                          
                            1.1
                          
                          
                            255.255
                          
                          .
                          
                            0.0
                          
                          
                            
 isis enable 
                          
                          
                            1
                          
                          
                            
 isis circuit
                          
                          -
                          
                            type p2p
#

                          
                          
                            return
                          
                          
                            
[Huawei
                          
                          -Ethernet0/
                          
                            0
                          
                          /
                          
                            1
                          
                          ]
                        

  PC配置如下:

  。

3.验证网络是否打通

  在R7上ping 这台PC得ip 。

                            。

4.分别查看每个路由设备得路由信息和isis路由

  R6:

                    。

  R7:

                。

  R8:

                    。

  R9:

                  。

5.ping包分析

  在R7或R8上ping PC得ip时,发现可以ping通,但是观察上面R7、R8得路由表时,并不存在PC得路由信息。它是如何ping通得呢?

  观察R8中ping PC得相关信息:

               。

   发现R8得路由表中存在一个 0.0.0.0/0 得路由信息。这个路由是设备自动生成得。这个路由又称为缺省路由。在ping 172.16.1.2时,会通过这个缺省路由转发到下一跳。下一跳正好转发到了R6得路由设备中,在从R6--->R9----->PC。完成了一个ping包得过程.

6.缺省路由:

  缺省路由(Default route)是在路由表中指定的一条特殊路由,用于处理目的地地址无法匹配其他路由表条目时的情况。它充当一个"默认"路径,将数据包引导到网络中的下一跳。缺省路由通常使用0.0.0.0/0作为目标地址,表示所有未知目的地.

  缺省路由的作用是将流量路由到目标地址未知或不可达的区域。当路由器接收到一个数据包时,它会查找路由表以确定如何转发该数据包。如果没有与目的地地址完全匹配的条目,路由器将检查是否存在缺省路由。如果存在缺省路由,则数据包将通过缺省路由发送到下一跳地址.

  。

最后此篇关于使用ensp搭建路由拓扑,并使用isis协议实现网络互通实操的文章就讲到这里了,如果你想了解更多关于使用ensp搭建路由拓扑,并使用isis协议实现网络互通实操的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com