IP Address Configuration on BOSS Linux

February 20, 2011

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, http://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.

Advertisements

Identifying PCI devices – lspci

May 25, 2008

Most PC Cards such as Network Interface Cards ( NIC ), Sound Cards are PCI devices. To get a list of PCI devices on your computer use lspci. lspci has a list of options, the most frequently used option being -v(verbose), you can also use -vv or -vvv to increase the extent of verbosity. For a complete list of options view the man pages(man lspci).

For instance if you are trying to identify your sound card use:

lspci | grep audio

on the terminal(Applications>Accessories>Terminal)

this will print the list of Sound Card/s. something like:

01:01.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 04)

Similarly lspci can also be used to identify other devices such as NICs

lspci | grep Ethernet

on the terminal lists out the NICs, you will see something like this:

01:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

To view all PCI devices use type lspci on the terminal. lspci is useful if you are trying to install drivers for your PCI devices or just plain exploring your hardware.