Q. How to configure IP Address on BOSS Linux?
A. Edit the following file:
/etc/network/interfaces
type:
$su
then enter root password, this file can only be edited by the root user.
#gedit /etc/network/interface
Here you’ll see the list of NICs that have been detected.
Now, to configure an IP Address on one of these NICs say, eth0, type the following
auto eth0
iface eth0 inet static
address ipaddresstobeassignedtomachine
netmask netmasktobeused
gateway gatewayipaddress
If you use DHCP instead of static IP addressing, replace static in the second line with dhcp and only type the first two lines, as the rest of the information will be obtained from the DHCP server. Remember to replace eth0 with the appropriate interface you are trying to configure in the first two lines.
Now restart networking using the following command
#/etc/init.d/networking restart
If you are using a DSL connection (most Broadband connections in India are DSL) and are having issues connecting to the Internet check if it is a DNS resolution related issue by ping-ing any website (say, www.wordpress.com) and checking if the URL is getting resolved to an IP Address, if it is not then you need to “force” the DNS IP Addresses. DNS IP Addresses are usually provided by ISPs, however, you could use OpenDNS
208.67.222.222
208.67.220.220
Type the following commands to edit the /etc/resolv.conf file so as to add the above IP Addresses, it is here that the DNS information is stored:
$su
#gedit /etc/resolv.conf
This should fix any DNS related issues.