Posts

Showing posts from March, 2014

Disabling IPv6 on -Ubuntu

Check IPv6(disabled or enabled), with rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0                           //Enabled Disabled IPv6 with the following lines in /etc/sysctl.conf : - net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Above, using command line(CLI):- rajeshp@ubuntu:~$ echo "#Disable ipv6" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$ echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$ echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$   echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf Reactivate the above configuration by, executing :- rajeshp@ubuntu:~$ sysctl -p rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6 1                   ...

About :IP static on Ubuntu server 12.4

About :IP static on Ubuntu server 12.4 -------------------------------------------------- rajesh@dns:~$ more /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface #auto lo #iface lo inet loopback # The primary network interface #auto eth0 #iface eth0 inet dhcp auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.88.128 netmask 255.255.255.0 gateway 192.168.88.2 dns-search rajesh.com dns-nameservers 8.8.8.8 8.8.4.4 ====================================================================== rajesh@dns:~$ more /etc/hosts 127.0.0.1       localhost 127.0.1.1       dns.kl.rajesh.local     dns 192.168.88.128  dns.kl.rajesh.local     dns rajesh@dns:~$sudo ifup eth0 rajesh@dns:~$sudo ifdown eth0 ===========...