sudo dhclient eth0
[sudo] password for niksasrsen:
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:22:64:64:2a:b0
Sending on LPF/eth0/00:22:64:64:2a:b0
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.2 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.2 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.2 from 192.168.1.1
bound to 192.168.1.2 -- renewal in 39987 seconds.
niksasrsen@niksasrsen-laptop ~ $ ping google.com
PING google.com (74.125.127.100) 56(84) bytes of data.
64 bytes from pz-in-f100.google.com (74.125.127.100): icmp_seq=1 ttl=54 time=201 ms
64 bytes from pz-in-f100.google.com (74.125.127.100): icmp_seq=2 ttl=54 time=198 ms
64 bytes from pz-in-f100.google.com (74.125.127.100): icmp_seq=3 ttl=54 time=202 ms
64 bytes from pz-in-f100.google.com (74.125.127.100): icmp_seq=4 ttl=54 time=196 ms
64 bytes from pz-in-f100.google.com (74.125.127.100): icmp_seq=5 ttl=54 time=197 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 5 received, 16% packet loss, time 5019ms
rtt min/avg/max/mdev = 196.964/199.186/202.183/2.252 ms
niksasrsen@niksasrsen-laptop ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
mtu 1400
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
niksasrsen@niksasrsen-laptop ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:64:64:2a:b0
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1285 errors:0 dropped:0 overruns:0 frame:0
TX packets:280 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:92393 (92.3 KB) TX bytes:34275 (34.2 KB)
Memory:e4600000-e4620000
eth1 Link encap:Ethernet HWaddr 00:21:00:81:bd:2e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:1
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3488 (3.4 KB) TX bytes:3488 (3.4 KB)
niksasrsen@niksasrsen-laptop ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
niksasrsen@niksasrsen-laptop ~ $ dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 6027
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
can't create /var/lib/dhcp3/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Open a socket for LPF: Operation not permitted