【笔记】自己搭了个ISIS与ospf互通的网络

9c4a91054958431db5934e9466c24d4d.png

 拓扑图如上:左边总部,内网192.168.(vlan id).1/24,例如:192.168.11.1/24,192.168.12.1/24。右边分部类似,AR1,AR6为总部,分部出口路由器,部署ospf与is-is,中间模拟ISP网络,部署IS-IS,在出口路由器的isis与ospf进程中进行路由重发布。ISIS进程中引入OSPF时,默认引入Level-2的LSDB,出口路由器为Level-1不存在Level-2的LSDB,因此需要指定引入到Level-1的LSDB中,各设备配置如下:

sysname SW1

#

undo info-center enable

#

vlan batch 11 to 14

stp region-configuration

 region-name wanggongxiaoli

 instance 1 vlan 11 to 12

 instance 2 vlan 13 to 14

 active region-configuration

quit

interface Ethernet0/0/1

 port link-type access

 port default vlan 11

#

interface Ethernet0/0/2

 port link-type access

 port default vlan 12

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

 

 

LSW2

sysname SW2

#

undo info-center enable

#

vlan batch 11 to 14

stp region-configuration

 region-name wanggongxiaoli

 instance 1 vlan 11 to 12

 instance 2 vlan 13 to 14

 active region-configuration

quit

interface Ethernet0/0/1

 port link-type access

 port default vlan 13

#

interface Ethernet0/0/2

 port link-type access

 port default vlan 14

interface GigabitEthernet0/0/1

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

 

 

 

LSW3

sysname SW3

#

undo info-center enable

#

vlan batch 11 to 14

#

stp instance 1 root primary

stp instance 2 root secondary

#

ip pool vlan11

 gateway-list 192.168.11.1

 network 192.168.11.0 mask 255.255.255.0

 excluded-ip-address 192.168.11.2 192.168.11.254

 dns-list 8.8.8.8

#

ip pool vlan12

 gateway-list 192.168.12.1

 network 192.168.12.0 mask 255.255.255.0

 excluded-ip-address 192.168.12.2 192.168.12.254

 dns-list 8.8.8.8

#

 

 

interface Vlanif1

 ip address 192.168.15.3 255.255.255.0

#

interface Vlanif11

 ip address 192.168.11.1 255.255.255.0

 vrrp vrid 1 virtual-ip 192.168.11.254

 vrrp vrid 1 priority 120

 vrrp vrid 1 preempt-mode timer delay 20

 dhcp select global

#

interface Vlanif12

 ip address 192.168.12.1 255.255.255.0

 vrrp vrid 1 virtual-ip 192.168.12.254

 vrrp vrid 1 priority 120

 vrrp vrid 1 preempt-mode timer delay 20

 dhcp select global

#

interface Vlanif13

 ip address 192.168.13.1 255.255.255.0

 vrrp vrid 1 virtual-ip 192.168.13.254

 vrrp vrid 1 preempt-mode timer delay 20

#

interface Vlanif14

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
ISIS (Interior Gateway Protocol) 和 OSPF (Open Shortest Path First) 都是用于计算机网络中的路由协议,它们各自负责在大型网络中发现并维护最佳路由路径。以下是两者的主要区别: 1. **设计目标和适用范围**: - ISIS 主要设计用于园区(内部)网络,如企业数据中心或校园网,其特点是支持链路状态路由算法,并能高效处理复杂的拓扑结构。 - OSPF 更广泛地应用在网络规模,包括企业、服务提供商网络甚至互联网,它既适合内部路由也适合外部网关协议(EGP),但默认情况下更适合平面网络。 2. **路由层次**: - ISIS 支持多层网络模型,包括Level-1(点到点)、Level-2(区域间)和Level-1-2(同时支持)。 - OSPF 也有多个层次,即区域内路由(Area 0)、区域间路由(Area 1),以及NSSA(Non-Standard Area, 对外透明的ASBR)。 3. **开销计算**: - ISIS 的开销(Cost)计算基于带宽,可以自定义。 - OSPF 使用带宽比例作为开销,也可以配置其他类型的成本。 4. **安全性**: - ISIS 提供了认证功能,支持 MD5 和 SHA-1 等加密算法,但不是强制性的。 - OSPF 也支持MD5认证,但更加强调使用IPSec等网络安全技术。 5. **收敛速度**: - ISIS 的收敛速度通常较快,特别是对于复杂拓扑。 - OSPF 收敛速度可能会稍慢一些,尤其是在大型网络中,因为它需要完全同步所有路由器的链路状态信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值