Difference between revisions of "IPv6: VyOS: Router Advertisement"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "= Router Advertisements = Router advertisements are described in https://tools.ietf.org/html/rfc4861#section-4.2 .<br> Supported interface types: * bonding * bridge * etherne...")
 
 
Line 109: Line 109:
  
 
* https://wiki.vyos.net/wiki/IPv6_Router_Advertisements
 
* https://wiki.vyos.net/wiki/IPv6_Router_Advertisements
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[TCP/IP: Advanced Routing]]
 +
* [[Quagga]]
 +
* [[VyOS]]
 +
* [[Mikrotik]]
 +
* [[Cisco]]
 +
* [[Juniper]]
 +
* [[BIRD1]]
 +
* [[BIRD2]]
 +
* [[IPv6]]
 +
 +
 +
* [[TCP/IP: Advanced Routing]]
 +
* [[IPv6: Advanced Routing]]
 +
* [[IPv6: Quagga]]
 +
* [[IPv6: VyOS]]
 +
* [[IPv6: Mikrotik]]
 +
* [[IPv6: Cisco]]
 +
* [[IPv6: Juniper]]
 +
* [[IPv6: BIRD1]]
 +
* [[IPv6: BIRD2]]
 +
* [[IPv6]]

Latest revision as of 08:26, 21 January 2019

Router Advertisements

Router advertisements are described in https://tools.ietf.org/html/rfc4861#section-4.2 .

Supported interface types:

  • bonding
  • bridge
  • ethernet
  • l2tpv3
  • openvpn
  • psuedo-ethernet
  • tunnel
  • vxlan
  • wireless
  • wirelessmodem

To enable or disable, use

set interfaces <interface> ipv6 router-advert send-advert <true or false>


To set the options described in "Router Advertisement Message Format", start from

set interfaces <interface> ipv6 router-advert

With sub-options:

RFC Field VyOS Config Option
Cur Hop Limit cur-hop-limit
"Managed address configuration" flag managed-flag
"Other configuration" flag other-config-flag
Router Lifetime default-lifetime
Reachable Time reachable-time
Retrans Timer retrans-timer
MTU link-mtu
Prefix Information See below

Prefix Information

Prefix information is described in https://tools.ietf.org/html/rfc4861#section-4.6.2

To set the fields described, start from

set interfaces <interface> ipv6 router-advert prefix <h:h:h:h:h:h:h:h/x>


With sub-options:

RFC Field VyOS Config Option
Prefix Length 'x' in <h:h:h:h:h:h:h:h/x>
on-link flag on-link-flag
autonomous address-configuration flag autonomous-flag
Valid Lifetime valid-lifetime
Preferred Lifetime preferred-lifetime


Miscellaneous Options

Starting from

set interfaces <interface> ipv6 router-advert

There are the following additional options:

Receiving Router Advertisements

To receive and accept RAs on an interface, you need to enable it via sysctl with the following command (as root):

sysctl -w net.ipv6.conf.eth0.accept_ra=2


The change is not reboot-persistent, so it either needs to be redone every time or added to rc.d.



Referensi


Pranala Menarik