Skip to content

Instantly share code, notes, and snippets.

@thehonker
Created May 7, 2019 13:07
Show Gist options
  • Select an option

  • Save thehonker/840e06b949e1c63b8416a53482d3ab0a to your computer and use it in GitHub Desktop.

Select an option

Save thehonker/840e06b949e1c63b8416a53482d3ab0a to your computer and use it in GitHub Desktop.
Switched to old ifupdown, set src directive is properly set on boot.
root@frr7-test:/var/log/frr# cat debug.log
2019/05/07 13:02:59.983826 ZEBRA: vty[??]@(config)# debug zebra events
2019/05/07 13:02:59.984330 ZEBRA: vty[??]@(config)# debug zebra kernel
2019/05/07 13:02:59.984711 ZEBRA: vty[??]@(config)# debug zebra rib
2019/05/07 13:02:59.985051 ZEBRA: vty[??]@(config)# interface ens18
2019/05/07 13:02:59.985436 ZEBRA: vty[??]@(config-if)# interface lo
2019/05/07 13:02:59.985835 ZEBRA: vty[??]@(config-if)# route-map set_src_addr permit 10
2019/05/07 13:02:59.986183 ZEBRA: vty[??]@(config-route-map)# set src 10.66.66.10
2019/05/07 13:02:59.986304 ZEBRA: vty[??]@(config-route-map)# ip protocol ospf route-map set_src_addr
2019/05/07 13:02:59.986419 ZEBRA: vty[??]@(config)# line vty
2019/05/07 13:02:59.986494 ZEBRA: vty[??]@(config-line)# end
2019/05/07 13:02:59.986559 ZEBRA: vty[??]@# disable
2019/05/07 13:03:00.005149 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.005178 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.005186 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.005194 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.005235 ZEBRA: client 16 says hello and bids fair to announce only ospf routes vrf=0
2019/05/07 13:03:00.005258 ZEBRA: bfd_client_register msg from client ospf: length=4
2019/05/07 13:03:00.079218 OSPF: vty[??]@(config)# interface ens18
2019/05/07 13:03:00.079653 OSPF: vty[??]@(config-if)# ip ospf area 10.66.20.120
2019/05/07 13:03:00.079751 OSPF: vty[??]@(config-if)# interface lo
2019/05/07 13:03:00.079895 OSPF: vty[??]@(config-if)# ip ospf area 10.66.66.10
2019/05/07 13:03:00.079975 OSPF: vty[??]@(config-if)# router ospf
2019/05/07 13:03:00.080386 OSPF: EXT (ospf_ext_link_ism_change): Set Adj. SID to interface ens18
2019/05/07 13:03:00.080410 OSPF: EXT (ospf_ext_pref_ism_change): Set Node SID to interface lo
2019/05/07 13:03:00.080479 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.080495 ZEBRA: zebra message comes from socket [16]
2019/05/07 13:03:00.080552 ZEBRA: rib_add_multipath: 0:10.66.20.120/29: Inserting route rn 0x56173da3a210, re 0x56173db4ef30 (type 6) existing (nil)
2019/05/07 13:03:00.080570 ZEBRA: rib_add_multipath: 0:10.66.66.10/32: Inserting route rn 0x56173da39a70, re 0x56173db4f070 (type 6) existing (nil)
2019/05/07 13:03:00.081521 OSPF: vty[??]@(config-router)# ospf router-id 10.66.66.10
2019/05/07 13:03:00.081875 OSPF: vty[??]@(config-router)# area 10.66.20.120 stub
2019/05/07 13:03:00.082228 OSPF: vty[??]@(config-router)# route-map set_src_addr permit 10
2019/05/07 13:03:00.082641 OSPF: vty[??]@(config-route-map)# line vty
2019/05/07 13:03:00.082985 OSPF: vty[??]@(config-line)# end
2019/05/07 13:03:00.083318 OSPF: vty[??]@# disable
2019/05/07 13:03:00.095729 ZEBRA: zebra message comes from socket [28]
2019/05/07 13:03:00.095744 ZEBRA: zebra message comes from socket [28]
2019/05/07 13:03:00.095752 ZEBRA: zebra message comes from socket [28]
2019/05/07 13:03:00.095793 ZEBRA: client 28 says hello and bids fair to announce only static routes vrf=0
2019/05/07 13:03:00.168431 STATIC: vty[??]@(config)# line vty
2019/05/07 13:03:00.168826 STATIC: vty[??]@(config-line)# end
2019/05/07 13:03:00.169160 STATIC: vty[??]@# disable
2019/05/07 13:03:00.704832 ZEBRA: netlink_parse_info: netlink-listen (NS 0) type RTM_NEWNEIGH(28), len=76, seq=0, pid=0
2019/05/07 13:03:01.236445 ZEBRA: netlink_parse_info: netlink-listen (NS 0) type RTM_NEWADDR(20), len=72, seq=0, pid=0
2019/05/07 13:03:01.236514 ZEBRA: netlink_interface_addr RTM_NEWADDR ens18 flags 0x80:
2019/05/07 13:03:01.236522 ZEBRA: IFA_ADDRESS fe80::10e0:bbff:fe6e:454b/64
2019/05/07 13:03:01.236528 ZEBRA: IFA_CACHEINFO pref -1, valid -1
2019/05/07 13:03:01.236543 ZEBRA: MESSAGE: ZEBRA_INTERFACE_ADDRESS_ADD fe80::10e0:bbff:fe6e:454b/64 on ens18(0)
2019/05/07 13:03:01.236590 ZEBRA: rib_add_multipath: 0:fe80::/64: Inserting route rn 0x56173db6c050, re 0x56173db6bf70 (type 2) existing (nil)
2019/05/07 13:03:01.236608 ZEBRA: rib_add_multipath: 0:fe80::/64 (MRIB): Inserting route rn 0x56173db6c250, re 0x56173db6c170 (type 2) existing (nil)
2019/05/07 13:03:01.236616 ZEBRA: rib_update : AFI_IP event 0
2019/05/07 13:03:01.236635 ZEBRA: rib_update : AFI_IP6 event 0
2019/05/07 13:03:01.236644 ZEBRA: netlink_parse_info: netlink-listen (NS 0) type RTM_NEWROUTE(24), len=116, seq=0, pid=0
2019/05/07 13:03:01.236651 ZEBRA: RTM_NEWROUTE ipv6 proto NS 0
2019/05/07 13:03:01.246609 ZEBRA: 0:fe80::/64: Adding route rn 0x56173db6c050, re 0x56173db6bf70 (type 2)
2019/05/07 13:03:01.246624 ZEBRA: 0:fe80::/64: Redist update re 0x56173db6bf70 (type 2), old (nil) (type -1)
2019/05/07 13:03:01.246634 ZEBRA: 0:fe80::/64: Adding route rn 0x56173db6c250, re 0x56173db6c170 (type 2)
2019/05/07 13:03:01.246640 ZEBRA: 0:fe80::/64: Redist update re 0x56173db6c170 (type 2), old (nil) (type -1)
2019/05/07 13:03:04.989535 ZEBRA: Event driven route-map update triggered
2019/05/07 13:03:04.989582 ZEBRA: Event handler for route-map: set_src_addr
2019/05/07 13:03:04.989597 ZEBRA: zebra_rib_table_rm_update : AFI_IP rmap set_src_addr, route type ospf
2019/05/07 13:03:05.118630 ZEBRA: vty[??]@> echo PING
2019/05/07 13:03:05.230522 OSPF: vty[??]@> echo PING
2019/05/07 13:03:05.291574 STATIC: vty[??]@> echo PING
2019/05/07 13:03:07.718340 ZEBRA: vty[??]@> enable
2019/05/07 13:03:07.718455 OSPF: vty[??]@> enable
2019/05/07 13:03:07.718620 STATIC: vty[??]@> enable
2019/05/07 13:03:08.457997 ZEBRA: vty[??]@# do write terminal
2019/05/07 13:03:08.458238 OSPF: vty[??]@# do write terminal
2019/05/07 13:03:08.458366 STATIC: vty[??]@# do write terminal
2019/05/07 13:03:10.057018 ZEBRA: vty[??]@> echo PING
2019/05/07 13:03:10.057689 ZEBRA: vty[??]@# exit
2019/05/07 13:03:10.058110 OSPF: vty[??]@# exit
2019/05/07 13:03:10.058280 STATIC: vty[??]@# exit
2019/05/07 13:03:10.105672 OSPF: vty[??]@> echo PING
2019/05/07 13:03:10.208745 STATIC: vty[??]@> echo PING
2019/05/07 13:03:15.058125 ZEBRA: vty[??]@> echo PING
2019/05/07 13:03:15.084530 OSPF: [EC 134217740] Packet[DD]: Neighbor 192.168.160.164 state is 2-Way, packet discarded.
2019/05/07 13:03:15.115874 OSPF: vty[??]@> echo PING
2019/05/07 13:03:15.225309 STATIC: vty[??]@> echo PING
2019/05/07 13:03:18.067092 ZEBRA: vty[??]@> enable
2019/05/07 13:03:18.067615 OSPF: vty[??]@> enable
2019/05/07 13:03:18.068045 STATIC: vty[??]@> enable
2019/05/07 13:03:20.084467 OSPF: [EC 134217740] Packet[DD]: Neighbor 192.168.160.164 state is 2-Way, packet discarded.
2019/05/07 13:03:20.104492 ZEBRA: vty[??]@> echo PING
2019/05/07 13:03:20.117059 OSPF: vty[??]@> echo PING
2019/05/07 13:03:20.339498 STATIC: vty[??]@> echo PING
2019/05/07 13:03:21.160086 ZEBRA: vty[??]@# exit
2019/05/07 13:03:21.160646 OSPF: vty[??]@# exit
2019/05/07 13:03:21.161100 STATIC: vty[??]@# exit
### here I stopped the frr service to prevent more stuff being written ###
2019/05/07 13:03:23.486257 ZEBRA: Terminating on signal
2019/05/07 13:03:23.486655 ZEBRA: Closing client 'ospf'
2019/05/07 13:03:23.486692 ZEBRA: release_daemon_table_chunks: Released 0 table chunks
2019/05/07 13:03:23.486704 ZEBRA: release_daemon_label_chunks: Released 0 label chunks
2019/05/07 13:03:23.486725 ZEBRA: rib_delnode: 0:10.66.20.120/29: rn 0x56173da3a210, re 0x56173db4ef30, removing
2019/05/07 13:03:23.486740 ZEBRA: rib_delnode: 0:10.66.66.10/32: rn 0x56173da39a70, re 0x56173db4f070, removing
2019/05/07 13:03:23.486761 ZEBRA: client 16 disconnected. 2 ospf routes removed from the rib
2019/05/07 13:03:23.486959 ZEBRA: Closing client 'static'
2019/05/07 13:03:23.486983 ZEBRA: release_daemon_table_chunks: Released 0 table chunks
2019/05/07 13:03:23.486990 ZEBRA: release_daemon_label_chunks: Released 0 label chunks
2019/05/07 13:03:23.487018 ZEBRA: client 28 disconnected. 0 static routes removed from the rib
2019/05/07 13:03:23.487067 ZEBRA: VRF default id 0 is now inactive
2019/05/07 13:03:23.487073 ZEBRA: MESSAGE: ZEBRA_VRF_DELETE default
2019/05/07 13:03:23.487092 ZEBRA: VRF default id 0 deleted
2019/05/07 13:03:23.487286 ZEBRA: Zebra final shutdown
2019/05/07 13:03:23.487352 ZEBRA: rib_unlink: 0:10.66.20.120/29: rn 0x56173da3a210, re 0x56173db4ef30
2019/05/07 13:03:23.487362 ZEBRA: rib_unlink: 0:10.66.20.120/29: rn 0x56173da3a210, re 0x56173da3a090
2019/05/07 13:03:23.487369 ZEBRA: rib_unlink: 0:10.66.66.10/32: rn 0x56173da39a70, re 0x56173db4f070
2019/05/07 13:03:23.487385 ZEBRA: rib_unlink: 0:10.66.66.10/32: rn 0x56173da39a70, re 0x56173da39990
2019/05/07 13:03:23.487394 ZEBRA: rib_unlink: 0:10.66.20.120/29 (MRIB): rn 0x56173da3a490, re 0x56173da3a310
2019/05/07 13:03:23.487402 ZEBRA: rib_unlink: 0:10.66.66.10/32 (MRIB): rn 0x56173da39db0, re 0x56173da39cd0
2019/05/07 13:03:23.487410 ZEBRA: rib_unlink: 0:fe80::/64: rn 0x56173db6c050, re 0x56173db6bf70
2019/05/07 13:03:23.487419 ZEBRA: rib_unlink: 0:fe80::/64 (MRIB): rn 0x56173db6c250, re 0x56173db6c170
2019/05/07 13:03:23.489486 STATIC: Terminating on signal
2019/05/07 13:03:23.490567 OSPF: Terminating on signal
2019/05/07 13:03:23.490645 OSPF: ASBR[Status:255]: Update
2019/05/07 13:03:23.490989 OSPF: EXT (ospf_ext_link_ism_change): Set Adj. SID to interface ens18
2019/05/07 13:03:23.491148 OSPF: EXT (ospf_ext_pref_ism_change): Set Node SID to interface lo
root@frr7-test:/var/log/frr#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment