homehowtokbslinksaboutcontactprojectsmusic

Index > Knowledge Base > Ubuntu 16.04 LTS tips
Change network interface name to eth0
Disable IPv6

Change network interface name to eth0

find the current interface name
ifconfig -a | grep -i --color hwaddr
find out what is the bios name for interface, you will see that device was renamed during system boot
dmesg | grep -i eth
change default grub to reflect bios device name instead
nano /etc/default/grub
comment out GRUB_CMDLINE_LINUX="" and add GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" right after it
generate new grub config
grub-mkconfig -o /boot/grub/grub.cfg
change the interface configuration to reflect the new name
sudo nano /etc/network/interfaces
change wherever you see the old interface name (enp0s3 in my case) to new (eth0 in my case)
auto eth0
iface eth0 inet dhcp
reboot the machine
reboot
now check the interface name again
ifconfig -a | grep -i --color hwaddr
Alle done ! reference
Go up

Disable IPv6

paste the following in your terminal
cat << eot >> /etc/sysctl.conf

# disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
eot
verify
sudo sysctl -p
You will see this in the terminal whatever options are enabled/uncommented in sysctl.conf, in this example
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
second check
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
if output is 1 then IPv6 is disabled Reference
Go up