homehowtokbslinksaboutcontactprojectsmusic

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

Change network interface name to eth0

find the current interface name
dmesg | grep -i eth
find out what is the bios name for interface, you will see that device was renamed during system boot 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
reboot the machine
reboot
now check the interface name again
ifconfig -a | grep -i --color eth
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