Guest User

Cumulus OSPF

a guest
Dec 9th, 2018
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. ################################ /etc/network/interfaces R1 #####################################
  2.  
  3. # This file describes the network interfaces available on your system
  4. # and how to activate them. For more information, see interfaces(5).
  5.  
  6. source /etc/network/interfaces.d/*.intf
  7.  
  8. # The loopback network interface
  9. auto lo
  10. iface lo inet loopback
  11. address 10.2.1.1/32
  12.  
  13. # The primary network interface
  14. auto eth0
  15. iface eth0 inet dhcp
  16.  
  17. #Link to C2-1
  18. auto swp1
  19. iface swp1
  20. address 10.2.1.1/32
  21.  
  22. #Link to C2-2
  23. auto swp2
  24. iface swp2
  25. address 10.2.2.1/32
  26.  
  27. #Link to client
  28. auto swp3
  29. iface swp3
  30. address 10.4.1.1/24
  31.  
  32.  
  33. #The hostonly interface
  34. auto swp9
  35. iface swp9 inet dhcp
  36.  
  37. ################################ /etc/network/interfaces R2 ####################################
  38.  
  39. # This file describes the network interfaces available on your system
  40. # and how to activate them. For more information, see interfaces(5).
  41.  
  42. source /etc/network/interfaces.d/*.intf
  43.  
  44. # The loopback network interface
  45. auto lo
  46. iface lo inet loopback
  47. address 10.2.1.2/32
  48.  
  49. # The primary network interface
  50. auto eth0
  51. iface eth0 inet dhcp
  52.  
  53. #Link to C2-1
  54. auto swp1
  55. iface swp1
  56. address 10.2.1.2/32
  57.  
  58. #Link to C2-2
  59. auto swp2
  60. iface swp2
  61. address 10.2.2.2/32
  62.  
  63. #Link to client
  64. auto swp3
  65. iface swp3
  66. address 10.4.2.1/24
  67.  
  68.  
  69. #The hostonly interface
  70. auto swp9
  71. iface swp9 inet dhcp
  72.  
  73. ################################ /etc/frr/frr.conf R1 ####################################
  74. service integrated-vtysh-config
  75.  
  76. interface swp1
  77. ip ospf network point-to-point
  78.  
  79. interface swp2
  80. ip ospf network point-to-point
  81.  
  82. router-id 10.2.1.1
  83.  
  84. router ospf
  85. ospf router-id 10.2.1.1
  86. network 10.2.1.0/32 area 0.0.0.0
  87. network 10.2.2.0/32 area 0.0.0.0
  88. network 10.4.1.0/24 area 0.0.0.0
  89.  
  90. ################################ /etc/frr/frr.conf R2 ####################################
  91. service integrated-vtysh-config
  92.  
  93. interface swp1
  94. ip ospf network point-to-point
  95.  
  96. interface swp2
  97. ip ospf network point-to-point
  98.  
  99. router-id 10.2.1.2
  100.  
  101. router ospf
  102. ospf router-id 10.2.1.2
  103. network 10.2.1.0/32 area 0.0.0.0
  104. network 10.2.2.0/32 area 0.0.0.0
  105. network 10.4.2.0/24 area 0.0.0.0
Add Comment
Please, Sign In to add comment