Advertisement
awalece

Install radvd and configure routing

Apr 16th, 2019
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.57 KB | None | 0 0
  1. apt-get install radvd
  2.  
  3. systemctl enable radvd
  4. systemctl start radvd
  5.  
  6. vim /etc/radvd.conf
  7.  
  8. interface enp2s0
  9.         {
  10.         MinRtrAdvInterval 3;
  11.         MaxRtrAdvInterval 4;
  12.         AdvSendAdvert on;
  13.         AdvManagedFlag off;
  14.         prefix 2401:ed80:1000:7::/64
  15.                 {
  16.                 AdvValidLifetime 14300;
  17.                 AdvPreferredLifetime 14200;
  18.                 };
  19.         RDNSS 2401:ed80:1000:7::1 {
  20.                 };
  21.         };
  22.  
  23.  
  24. systemctl restart radvd
  25.  
  26. sysctl -w net.ipv4.conf.all.forwarding=1
  27. sysctl -w net.ipv6.conf.all.forwarding=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement