Advertisement
Guest User

vyos local vm

a guest
Mar 7th, 2022
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. vyos@vyos:~$ show configuration
  2. interfaces {
  3. dummy dum0 {
  4. address 172.23.5.70/32
  5. }
  6. ethernet eth0 {
  7. address dhcp
  8. hw-id 00:50:56:9e:62:52
  9. }
  10. ethernet eth1 {
  11. hw-id 00:50:56:9e:14:71
  12. }
  13. loopback lo {
  14. }
  15. wireguard wg0 {
  16. address 10.133.0.1/30
  17. mtu 1420
  18. peer vultr-bgpcore1 {
  19. address 45.76.143.161
  20. allowed-ips 172.16.0.0/12
  21. allowed-ips 10.0.0.0/8
  22. persistent-keepalive 25
  23. port 51824
  24. public-key ****************
  25. }
  26. private-key ****************
  27. }
  28. }
  29. policy {
  30. prefix-list DN42-Network {
  31. rule 10 {
  32. action permit
  33. le 32
  34. prefix 172.20.0.0/14
  35. }
  36. rule 20 {
  37. action permit
  38. le 32
  39. prefix 10.0.0.0/8
  40. }
  41. }
  42. route-map Default-Peering {
  43. rule 20 {
  44. action permit
  45. description "Allow DN42-Network"
  46. match {
  47. ip {
  48. address {
  49. prefix-list DN42-Network
  50. }
  51. }
  52. }
  53. }
  54. rule 21 {
  55. action permit
  56. description "Allow DN42-Network"
  57. }
  58. rule 99 {
  59. action deny
  60. }
  61. }
  62. }
  63. protocols {
  64. bgp {
  65. address-family {
  66. ipv4-unicast {
  67. network 172.23.5.64/26 {
  68. }
  69. redistribute {
  70. connected {
  71. }
  72. }
  73. }
  74. }
  75. local-as 4242420897
  76. neighbor 10.133.0.2 {
  77. address-family {
  78. ipv4-unicast {
  79. route-map {
  80. export Default-Peering
  81. import Default-Peering
  82. }
  83. }
  84. }
  85. ebgp-multihop 20
  86. remote-as 4242420897
  87. }
  88. parameters {
  89. router-id 172.23.5.70
  90. }
  91. }
  92. static {
  93. route 172.23.5.65/32 {
  94. interface wg0 {
  95. }
  96. }
  97. }
  98. }
  99. service {
  100. ssh {
  101. }
  102. }
  103. system {
  104. config-management {
  105. commit-revisions 100
  106. }
  107. conntrack {
  108. modules {
  109. ftp
  110. h323
  111. nfs
  112. pptp
  113. sip
  114. sqlnet
  115. tftp
  116. }
  117. }
  118. console {
  119. device ttyS0 {
  120. speed 115200
  121. }
  122. }
  123. host-name vyos
  124. login {
  125. user vyos {
  126. authentication {
  127. encrypted-password ****************
  128. plaintext-password ****************
  129. }
  130. }
  131. }
  132. ntp {
  133. server time1.vyos.net {
  134. }
  135. server time2.vyos.net {
  136. }
  137. server time3.vyos.net {
  138. }
  139. }
  140. syslog {
  141. global {
  142. facility all {
  143. level info
  144. }
  145. facility protocols {
  146. level debug
  147. }
  148. }
  149. }
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement