Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


https://frrouting.org/


Install on Ubuntu

https://deb.frrouting.org/



sudo vtysh

show running-config

Code Block
titlefrr config
collapsetrue
internet-router# show running-config 
Building configuration...

Current configuration:
!
frr version 5.0.1
frr defaults traditional
hostname internet-router
no ipv6 forwarding
log stdout
!
password zebra
!
interface bo1
 ip ospf 1 area 0.0.0.1
!
interface bo2
 ip ospf 2 area 0.0.0.2
!
interface dc
 ip ospf 3 area 0.0.0.3
!
router bgp 6000
 neighbor 1.1.1.128 remote-as 100
 neighbor 1.1.1.128 description -= Seattle Branch Office =-
 neighbor 1.1.1.128 interface bo1
 neighbor 2.2.2.128 remote-as 200
 neighbor 2.2.2.128 description -= Dallas Branch Office =-
 neighbor 2.2.2.128 interface bo2
 neighbor 3.3.3.128 remote-as 300
 neighbor 3.3.3.128 description -= Boston Datacenter =-
 neighbor 3.3.3.128 interface dc
 !
 address-family ipv4 unicast
  network 1.1.1.0/24
  network 2.2.2.0/24
  network 3.3.3.0/24
 exit-address-family
!
router ospf 1
 ospf router-id 1.1.1.1
 redistribute connected
 distribute-list blockmgmt out connected
!
router ospf 2
 ospf router-id 2.2.2.2
 redistribute connected
 distribute-list blockmgmt out connected
!
router ospf 3
 ospf router-id 3.3.3.3
 redistribute connected
 distribute-list blockmgmt out connected
!
access-list blockmgmt deny 192.168.7.0/24
access-list blockmgmt permit any
access-list all permit any
!
line vty
!
end
internet-router#



show bgp summary

Code Block
titlebgp summary
collapsetrue
internet-router# show bgp summary 

IPv4 Unicast Summary:
BGP router identifier 192.168.7.101, local AS number 6000 vrf-id 0
BGP table version 3
RIB entries 5, using 760 bytes of memory
Peers 3, using 62 KiB of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
1.1.1.128       4        100       0       0        0    0    0    never       Active
2.2.2.128       4        200       0       0        0    0    0    never       Active
3.3.3.128       4        300       0       0        0    0    0    never       Active

Total number of neighbors 3
internet-router#



show bgp neighbors



show bgp ipv4

Code Block
titlebgp ipv4 routes RiB
collapsetrue
internet-router# show bgp ipv4
BGP table version is 3, local router ID is 192.168.7.101, vrf id 0
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0/24       0.0.0.0                  0         32768 i
*> 2.2.2.0/24       0.0.0.0                  0         32768 i
*> 3.3.3.0/24       0.0.0.0                  0         32768 i

Displayed  3 routes and 3 total paths
internet-router#



show ip route


Code Block
titleshow routes
collapsetrue
internet-router# show ip route 
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR,
       > - selected route, * - FIB route

O[1]   1.1.1.0/24 [110/100] is directly connected, bo1, 05:46:02
C>* 1.1.1.0/24 is directly connected, bo1, 05:46:02
O[2]   2.2.2.0/24 [110/100] is directly connected, bo2, 05:46:01
C>* 2.2.2.0/24 is directly connected, bo2, 05:46:01
O[3]   3.3.3.0/24 [110/100] is directly connected, dc, 05:46:02
C>* 3.3.3.0/24 is directly connected, dc, 05:46:02
C>* 4.4.4.0/24 is directly connected, yum, 05:46:01
C>* 192.168.7.0/24 is directly connected, mgmt, 05:46:01
internet-router#