Skip to main content

Posts

Showing posts from March, 2018

IPv6 configuration: worked, executable examples

TL;DR: Working examples of setting IPv6 addresses, nameservers and routes (static, SLAAC+RDNSS, SLAAC+stateless DHCPv6, and stateful DHCPv6), with client configuration for ifupdown (/etc/network/interfaces) and netplan, that you can run and experiment with on your own computer with minimal dependencies: github.com/daxtens/ipv6-config-demos There are quite a few ways you can set up an IPv6 connection with enough information to be useful - an address, nameserver and default route. So far I've come up with 4, listed in the table below. (I found them all very confusing to begin with - the best explanation I've found online so far is this blog post .) Method Address DNS Nameserver Default Route Static Static Static Static SLAAC + RDNSS Autogenerated by client RDNSS data in RA From RA SLAAC + Stateless DHCPv6 Autogenerated by client DHCPv6 From RA Stateful DHCPv6 Assigned by DHCPv6 server DHCPv6 ...

Connecting to a wifi network with netplan

How do you connect to a a wifi network with netplan? I hang out on the #netplan IRC channel on Freenode, and this comes up every so often. netplan - the default network configuration tool in Ubuntu 17.10 onwards - currently supports WPA2 Personal networks, and open (unencrypted) networks only. If you need something else, consider using NetworkManager directly, or falling back to ifupdown and wpa_supplicant for a little longer. Without further ado, here are tested, working YAML files for connection to my local WPA2 and unencrypted network. The only things that have been changed are the SSIDs and password. Both networks have a router providing dhcp4. In both cases I assume there's only one wifi device in the system - if this is not true, replace match: {} with something more specific. You can drop these in  /etc/netplan and run netplan generate; netplan apply  and things should work. The network will also be brought up on subsequent boots. Note that, as always in YAML...