Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. antidote@debian:~$ cat ripd-conf.json
  2. {
  3. "frr-ripd:ripd": {
  4. "instance": [
  5. {
  6. "vrf": "default",
  7. "redistribute": [
  8. {
  9. "protocol": "connected"
  10. },
  11. {
  12. "protocol": "kernel"
  13. }
  14. ]
  15. }
  16. ]
  17. }
  18. }
  19. antidote@debian:~$ sudo sysrepocfg frr-ripd -i ./ripd-conf.json -f json
  20. The new configuration was successfully applied.
  21. antidote@debian:/usr/lib/frr$ sudo sysrepocfg --datastore=running frr-ripd -o -f json -x
  22. {
  23. "frr-ripd:ripd": {
  24. "instance": [
  25. {
  26. "vrf": "default",
  27. "redistribute": [
  28. {
  29. "protocol": "connected"
  30. },
  31. {
  32. "protocol": "kernel"
  33. }
  34. ],
  35. "state": {
  36. "routes": {
  37. "route": [
  38. {
  39. "prefix": "0.0.0.0/0",
  40. "next-hop": "10.0.2.2",
  41. "interface": "ens3",
  42. "metric": 1
  43. },
  44. {
  45. "prefix": "10.0.2.0/24",
  46. "interface": "ens3",
  47. "metric": 1
  48. }
  49. ]
  50. }
  51. }
  52. }
  53. ]
  54. }
  55. }
  56. antidote@debian:/usr/lib/frr$ telnet 127.0.0.1 2602
  57. Trying 127.0.0.1...
  58. Connected to 127.0.0.1.
  59. Escape character is '^]'.
  60.  
  61. Hello, this is FRRouting (version 7.2-dev).
  62. Copyright 1996-2005 Kunihiro Ishiguro, et al.
  63.  
  64.  
  65. User Access Verification
  66.  
  67. Password:
  68. debian> en
  69. debian# show running-config
  70.  
  71. Current configuration:
  72. !
  73. frr version 7.2-dev
  74. frr defaults traditional
  75. !
  76. hostname debian
  77. password antidotelabs
  78. !
  79. !
  80. !
  81. !
  82. router rip
  83. redistribute connected
  84. redistribute kernel
  85. !
  86. line vty
  87. !
  88. end
  89. debian# show ip rip
  90. Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
  91. Sub-codes:
  92. (n) - normal, (s) - static, (d) - default, (r) - redistribute,
  93. (i) - interface
  94.  
  95. Network Next Hop Metric From Tag Time
  96. K(r) 0.0.0.0/0 10.0.2.2 1 self 0
  97. C(r) 10.0.2.0/24 0.0.0.0 1 self 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement