Jump to content

Recommended Posts

Posted

есть ли способ изменить вес (weight) маршрута приходящего из ospf в linux?

есть linux с ospf на FRrouting, в сторону глобал 2 интерфейса, там одна area, далее (одинаково с каждой стороны) криптошлюз, потом файрволл и бордер. 

Бордеры между собой связаны, один из них основной и он отдаёт default в ospf в обе "ноги".

На линукс прилетает 2 default

default proto ospf metric 20
        nexthop via 10.20.7.226 dev ens192 weight 1
        nexthop via 10.20.7.238 dev ens224 weight 1 

хотелось бы чтоб default были как основной и резервный. Но что-то судя по инфе в Интернете с  ECMP в ospf линукса всё ...не очень.

Есть ли идеи, как это сделать по другому?

 

Posted
18 часов назад, guеst сказал:

есть ли способ изменить вес (weight) маршрута приходящего из ospf в linux?

есть linux с ospf на FRrouting, в сторону глобал 2 интерфейса, там одна area, далее (одинаково с каждой стороны) криптошлюз, потом файрволл и бордер. 

Бордеры между собой связаны, один из них основной и он отдаёт default в ospf в обе "ноги".

На линукс прилетает 2 default


default proto ospf metric 20
        nexthop via 10.20.7.226 dev ens192 weight 1
        nexthop via 10.20.7.238 dev ens224 weight 1 

хотелось бы чтоб default были как основной и резервный. Но что-то судя по инфе в Интернете с  ECMP в ospf линукса всё ...не очень.

Есть ли идеи, как это сделать по другому?

 

Сделай sh ip ospf interface

  • 2 weeks later...
Posted (edited)
В 22.05.2021 в 04:06, ne-vlezay80 сказал:

Сделай sh ip ospf interface

 # sh ip ospf interface
ens192 is up
  ifindex 4, MTU 1500 bytes, BW 10000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.20.7.225/30, Broadcast 10.20.7.227, Area 0.0.0.1
  MTU mismatch detection: enabled
  Router ID 10.20.7.238, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 10.20.7.238, Interface Address 10.20.7.225
  Saved Network-LSA sequence number 0x80000002
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 4.892s
  Neighbor Count is 1, Adjacent neighbor count is 1
ens224 is up
  ifindex 6, MTU 1500 bytes, BW 10000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.20.7.237/30, Broadcast 10.20.7.239, Area 0.0.0.1
  MTU mismatch detection: enabled
  Router ID 10.20.7.238, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 10.20.7.238, Interface Address 10.20.7.237
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 0.009s
  Neighbor Count is 1, Adjacent neighbor count is 1

@VolanD666  , на хосте в frr? стоит, но...

# sh run
Building configuration...

Current configuration:
!
frr version 7.5.1
frr defaults traditional
log file /var/log/frr/ospfd.log
log syslog informational
no ipv6 forwarding
no service integrated-vtysh-config
!
interface en192
 ip ospf cost 20
!

 

Edited by guеst
Posted
1 час назад, guеst сказал:

 # sh ip ospf interface
ens192 is up
  ifindex 4, MTU 1500 bytes, BW 10000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.20.7.225/30, Broadcast 10.20.7.227, Area 0.0.0.1
  MTU mismatch detection: enabled
  Router ID 10.20.7.238, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 10.20.7.238, Interface Address 10.20.7.225
  Saved Network-LSA sequence number 0x80000002
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 4.892s
  Neighbor Count is 1, Adjacent neighbor count is 1
ens224 is up
  ifindex 6, MTU 1500 bytes, BW 10000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.20.7.237/30, Broadcast 10.20.7.239, Area 0.0.0.1
  MTU mismatch detection: enabled
  Router ID 10.20.7.238, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Backup Designated Router (ID) 10.20.7.238, Interface Address 10.20.7.237
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 0.009s
  Neighbor Count is 1, Adjacent neighbor count is 1

@VolanD666  , на хосте в frr? стоит, но...


# sh run
Building configuration...

Current configuration:
!
frr version 7.5.1
frr defaults traditional
log file /var/log/frr/ospfd.log
log syslog informational
no ipv6 forwarding
no service integrated-vtysh-config
!
interface en192
 ip ospf cost 20
!

 

 

А что за OS на хосте и какая версия GCC? А то у меня с ним проблемы

 

Posted
7 минут назад, ne-vlezay80 сказал:

А что за OS на хосте и какая версия GCC? А то у меня с ним проблемы

 

Debian 10.9

# sh version
FRRouting 7.5.1 .
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--enable-exampledir=/usr/share/doc/frr/examples/' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-systemd=yes' '--enable-rpki' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3'

frr из репозитория 

deb https://deb.frrouting.org/frr buster frr-stable

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.