All pastes #915511 Raw Edit

chealer

public text v1 · immutable
#915511 ·published 2008-02-23 21:15 UTC
rendered paste body
# dhclient
[...]
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.38 -- renewal in 58 seconds.

[root@probe ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
default         wrt.lan         0.0.0.0         UG    0      0        0 eth0

[root@probe ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search lan
nameserver 192.168.0.1

[root@probe ~]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:0C:29:80:6F:75  
          inet addr:192.168.0.38  Bcast:192.168.0.255  Mask:255.255.255.0
[...]

Host-only

[root@probe ~]# dhclient
[...]
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.114.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.114.254
bound to 192.168.114.128 -- renewal in 711 seconds.

[root@probe ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.114.1

[root@probe ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0C:29:80:6F:75  
          inet addr:192.168.114.128  Bcast:192.168.114.255  Mask:255.255.255.0
	  
[root@probe ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.114.0   *               255.255.255.0   U     0      0        0 eth0
 

NAT

[root@probe ~]# dhclient
[...]
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.111.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.111.254
bound to 192.168.111.129 -- renewal in 894 seconds.

[root@probe ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.111.0   *               255.255.255.0   U     0      0        0 eth0
default         192.168.111.2   0.0.0.0         UG    0      0        0 eth0

[root@probe ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0C:29:80:6F:75  
          inet addr:192.168.111.129  Bcast:192.168.111.255  Mask:255.255.255.0
[...]

[root@probe ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.111.2