sun:/home/sunil# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:F3
A:A2:09
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:feda:a209/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:8122 (7.9 KiB)
Interrupt:233 Base address:0xa400
eth1 Link encap:Ethernet HWaddr 00:80:48:51:2C:A3
inet addr:116.68.83.141 Bcast:255.255.255.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:63663 errors:0 dropped:0 overruns:0 frame:0
TX packets:2291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5202695 (4.9 MiB) TX bytes:268420 (262.1 KiB)
Interrupt:50 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:67 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5109 (4.9 KiB) TX bytes:5109 (4.9 KiB)
/etc/host/interfaces contents
------------------------------
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth1
auto eth1
iface eth1 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0