Dhcp

From Alessandro's Wiki
Jump to: navigation, search


  • dhcpdump
dhcpdump -i eth0
  TIME: 2012-02-27 20:45:20.211
    IP: 0.0.0.0 (0:25:90:3d:cc:71) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 63276b24
  SECS: 0
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 00:25:90:3d:cc:71:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  61 (  7) Client-identifier         01:00:25:90:3d:cc:71
OPTION:  60 ( 12) Vendor class identifier   udhcp 1.12.0
OPTION:  57 (  2) Maximum DHCP message size 576
OPTION:  55 (  7) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                              6 (DNS server)
                                             12 (Host name)
                                             15 (Domainname)
                                             28 (Broadcast address)
                                             42 (NTP servers)
 
---------------------------------------------------------------------------

push route

https://forum.pfsense.org/index.php?topic=74903.0

  • using option 121
08:0a:ac:10:0a:7e:0c:ac:10:ac:10:0a:7e:10:c0:a8:ac:10:0a:7e
10.0.0.0/8 via  172.16.10.126
172.16.0.0/12 via 172.16.10.126
192.168.0.0/16 via 172.16.10.126