I am trying to use Webmin to setup static IPs, both IPv4 and IPv6. The changes simply don't take effect.
Complete steps to produce, a lot of these are my 'standard' setup on a new install so can be skipped, but I'm going for completeness in case something I am doing it breaking it. haha I don't think so, but I try really hard not to assume things.
Write NEMS to the MicroSD card,
Code: Select all
echo 1 > /proc/sys/kernel/sysrq
curl -L http://www.baldnerd.com/downloads/nems/NEMS_v1.2.1.zip | funzip | dd bs=4M of=/dev/mmcblk0
echo b > /proc/sysrq-trigger
Code: Select all
ssh-keygen
echo "ssh-rsa AAAA [SNIP] Pgw== " >> .ssh/authorized_keys
passwd
sudo su -
ssh-keygen
echo "ssh-rsa AAAA [SNIP] Pgw== " >> .ssh/authorized_keys
cp /home/pi/.bashrc ~/
passwd
exit
sudo nems-init
[Reboots from the nems-init]
sudo nems-upgrade
[Reboot]
1. Sets up a private-public RSA key for SSH for the pi user
2. Adds my RSA public key to use with password-less CLI login
3. Change pi account password
4. Switches to the root account
5. Sets up the RSA keypair for the root account
6. Adds my RSA key for password-less root login
7. Copies the .bashrc from the Pi account for CLI colours and such
8. Sets a password for the root account
9. Back to Pi account
10. Sets up NEMS
11. Upgrades NEMS to newest version.
Then I log into Webmin with the Pi account.
Networking > Network Configuration
Network Interfaces > Activated at Boot
eth0
IPv4 Addresses - Static Configuration >
IPv4 address 192.168.1.4
Netmask 255.255.255.0
Broadcast Automatic
IPv6 Addresses - Static Configuration
IPv6 Address 2001a:c:4
Netmask 64
Save
Return to Network Configuration
Routing and Gateways
Default Router - Gateway 192.168.1.1 eth0
Default IPv6 router - Gateway 2001a:1
Hostname and DNS Client
Hostname NEMS.local
Resolution Order shows:
Code: Select all
files mdns4_minimal [NOTFOUND=return] dns
DNS servers show the two DNS servers from DHCP, so I add 2001a:c:2
Search Domains - Listed
local
Save
Hostname and DNS Client
DNS Servers
add 2001a:c:3
Save
Now I flip back to the CLI, Pi account or root account
sudo reboot / reboot
After Reboot
Code: Select all
root@Oracle:~ # ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.117 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::7ebb:4571:1afc:4dc6 prefixlen 64 scopeid 0x20<link>
inet6 2001:a:a:a:a:a:a:7584 prefixlen 64 scopeid 0x0<global>
ether c7:ed:9a:4a:7f:cd txqueuelen 1000 (Ethernet)
RX packets 367 bytes 45728 (44.6 KiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 345 bytes 45374 (44.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0