Saturday, July 16, 2011

How do I find out my DHCP server address?

ถ้าเชื่อมต่อด้วย dhclient

ls -t -l /var/lib/dhcp/
# List ไฟล์ โดยเรียง modification time ด้วยคำสั่ง

แล้วก็ vi ดูไฟล์ที่ถูกแก้ไขล่าสุด

ตัวอย่าง output

lease {
interface "eth0";
fixed-address 192.168.1.49;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers 192.168.1.1;
option dhcp-server-identifier 192.168.1.1;
option vendor-class-identifier 0:0;
option vendor-encapsulated-options 1:4:43:54:43:30;
option domain-name "domain.name";
option vendor.unknown-3561 4:6:30:30:45:30:34:43:5:8:30:30:30:30:30:30:30:31:6:3:49:47:44;
renew 4 2011/05/26 11:52:46;
rebind 4 2011/05/26 22:46:45;
expire 5 2011/05/27 01:46:45;
}

No comments:

Post a Comment