VyOS

From SixXS Wiki
Jump to: navigation, search

Configuration with static tunnel

You only need set the tunnel.

  set interfaces tunnel tun0 address '2001:aaaa:bbbb:cccc::2/64' #Your IPv6
  set interfaces tunnel tun0 description 'SixXS Tunnel'
  set interfaces tunnel tun0 encapsulation 'sit'
  set interfaces tunnel tun0 local-ip '177.0.0.0' #Your IPv4 connection
  set interfaces tunnel tun0 mtu '1280'
  set interfaces tunnel tun0 multicast 'disable'
  set interfaces tunnel tun0 remote-ip '201.48.0.0' #Your PoP IPv4
  set protocols static interface-route6 ::/0 next-hop-interface 'tun0'

Configuration for AYIYA and heartbeat using Aiccu

1. Add the Debian APT repository:

  configure
  set system package repository squeeze components 'main contrib non-free'
  set system package repository squeeze distribution squeeze
  set system package repository squeeze url http://http.us.debian.org/debian
  commit


2. Install and configure the package:

  sudo apt-get update
  sudo apt-get install aiccu


Use your Sixxs login/tunnel and password.


3. Execute the auto test for errors.

  sudo aiccu auto-test


4. If all ok, start the tunnel and configure the subnet.

  sudo aiccu start


5. Use your 'Subnet Prefix'

  set interfaces ethernet eth1 address '2001:aaaa:bbbb:cccc::1/64'
  set interfaces ethernet eth1 ipv6 router-advert default-preference 'medium'
  set interfaces ethernet eth1 ipv6 router-advert managed-flag 'true'
  set interfaces ethernet eth1 ipv6 router-advert max-interval '10'
  set interfaces ethernet eth1 ipv6 router-advert other-config-flag 'true'
  set interfaces ethernet eth1 ipv6 router-advert prefix '2001:aaaa:bbbb:cccc::/64'
  set interfaces ethernet eth1 ipv6 router-advert send-advert 'true'
  commit


6 Test your IPv6 subnet in another pc.


7. For auto start and Vyos script support:

7.1. Update wget and download scripts

  sudo apt-get install wget
  sudo wget https://github.com/Twanfox/vyatta-aiccu/archive/master.zip -O /tmp/vyatta-aiccu.zip
  sudo unzip /tmp/vyatta-aiccu.zip -d /tmp
  sudo sh -c "cd /tmp/vyatta-aiccu-master ; ./install.sh"


7.2. Configure tunnel

  configure
  set interfaces aiccu aiccu0 tic tunnel TUNNELID
  set interfaces aiccu aiccu0 tic username USER-SIXXS
  set interfaces aiccu aiccu0 tic password PASSWORD-SIXXS
  commit
  set protocols static interface-route6 ::/0 next-hop-interface aiccu0
  commit


Obs. This use Twanfox's fork of fgp git to support VyOS.