guеst Posted May 21, 2021 Posted May 21, 2021 есть ли способ изменить вес (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 линукса всё ...не очень. Есть ли идеи, как это сделать по другому? Вставить ник Quote
VolanD666 Posted May 21, 2021 Posted May 21, 2021 Там нельзя кост поменять на инт-се или я схему не так понимаю? ) Вставить ник Quote
ne-vlezay80 Posted May 21, 2021 Posted May 21, 2021 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 Вставить ник Quote
guеst Posted May 30, 2021 Author Posted May 30, 2021 (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 May 30, 2021 by guеst Вставить ник Quote
ne-vlezay80 Posted May 30, 2021 Posted May 30, 2021 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? А то у меня с ним проблемы Вставить ник Quote
guеst Posted May 30, 2021 Author Posted May 30, 2021 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 Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.