Before I post to networking-discuss I wanted to ask if anyone had tried this on this:

I'm trying to run a dhcp-server on a dom0 over a vnic so that the domU's can get IP addresses.

I created a vnic r1 over e1000g0 and gave it a static IP 172.0.94.111/24 so I can run the dhcp server over this vnic.

r...@lm2-dom0:~# dhtadm -P
Name                    Type            Value
==================================================
172.0.94.0 Macro :Subnet = 255.255.255.0 :Router = 172.0.94.111 :Broadcst =172.0.94.255:NISdmain="celab.sfbay.sun.com":NISservs=129.146.17.35: lm2-dom0 Macro :Include = Locale:Timeserv = 10.5.184.94 :LeaseTim=86400:LeaseNeg:DNSdmain="network.com":DNSserv=129.147.9.5:
Locale                  Macro           :UTCoffst=-28800:

Partial output of  pntadm
r...@lm2-dom0:~# pntadm -P 172.0.94.0
Client ID Flags Client IP Server IP Lease Expiration Macro Comment

00 00 172.0.94.189 172.0.94.111 Zero 172.0.94.0 00 00 172.0.94.188 172.0.94.111 Zero 172.0.94.0

Running in.dhcpd in debug mode I see:

r...@lm2-dom0:~# /usr/lib/inet/in.dhcpd -dv -i r1,e1000g0
4b06de9c:  Daemon Version: 3.5
4b06de9c:  Maximum relay hops: 4
4b06de9c:  Run mode is: DHCP Server Mode.
4b06de9c:  Datastore resource: SUNWfiles
4b06de9c:  Location: /var/dhcp
4b06de9c:  DHCP offer TTL: 10
4b06de9c:  ICMP validation timeout: 1000 milliseconds, Attempts: 1.
4b06de9c:  Owner IP address: 127.0.0.1
4b06de9c:  Maximum concurrent clients: 8192
4b06de9c:  Maximum threads: 2048
4b06de9c: Read 3 entries from DHCP macro database on Fri Nov 20 10:23:24 2009
4b06de9c:  Monitor (0003/e1000g0) started...
4b06de9c:  Thread Id: 0003 - Monitoring Interface: e1000g0 *****
4b06de9c:  MTU: 1500    Type: SOCKET
4b06de9c:  Broadcast: 10.5.187.255
4b06de9c:  Netmask: 255.255.252.0
4b06de9c:  Address: 10.5.184.94
4b06de9c:  Monitor (0004/r1) started...
4b06de9c:  Thread Id: 0004 - Monitoring Interface: r1 *****
4b06de9c:  MTU: 1500    Type: SOCKET
4b06de9c:  Broadcast: 172.0.94.255
4b06de9c:  Netmask: 255.255.255.0
4b06de9c:  Address: 172.0.94.111
4b06dea3:  Datagram received on network device: r1(limited broadcast)
4b06dea3: Datagram received on network device: e1000g0(limited broadcast) 4b06dea3: e1000g0(limited broadcast): There is no 10.5.184.0 dhcp- network table for DHCP client's network.


When I bring up my domU I see the DHCPDISCOVER request in the domO but the dhcpserver is not issuing IP address.
ETHER:  ----- Ether Header -----
ETHER:
ETHER:  Packet 4 arrived at 10:15:12.70426
ETHER:  Packet size = 342 bytes
ETHER:  Destination = ff:ff:ff:ff:ff:ff, (broadcast)
ETHER:  Source      = 0:16:3e:0:0:e4,
ETHER:  Ethertype = 0800 (IP)
ETHER:
IP:   ----- IP Header -----
IP:
IP:   Version = 4
IP:   Header length = 20 bytes
IP:   Type of service = 0x00
IP:         xxx. .... = 0 (precedence)
IP:         ...0 .... = normal delay
IP:         .... 0... = normal throughput
IP:         .... .0.. = normal reliability
IP:         .... ..0. = not ECN capable transport
IP:         .... ...0 = no ECN congestion experienced
IP:   Total length = 328 bytes
IP:   Identification = 44595
IP:   Flags = 0x4
IP:         .1.. .... = do not fragment
IP:         ..0. .... = last fragment
IP:   Fragment offset = 0 bytes
IP:   Time to live = 255 seconds/hops
IP:   Protocol = 17 (UDP)
IP:   Header checksum = cc71
IP:   Source address = 0.0.0.0, OLD-BROADCAST
IP:   Destination address = 255.255.255.255, BROADCAST
IP:   No options
IP:
UDP:  ----- UDP Header -----
UDP:
UDP:  Source port = 68
UDP:  Destination port = 67 (BOOTPS)
UDP:  Length = 308
UDP:  Checksum = 0000 (no checksum)
UDP:
DHCP: ----- Dynamic Host Configuration Protocol -----
DHCP:
DHCP: Hardware address type (htype) =  1 (Ethernet (10Mb))
DHCP: Hardware address length (hlen) = 6 octets
DHCP: Relay agent hops = 0
DHCP: Transaction ID = 0xd6054229
DHCP: Time since boot = 12 seconds
DHCP: Flags = 0x0000
DHCP: Client address (ciaddr) = 0.0.0.0
DHCP: Your client address (yiaddr) = 0.0.0.0
DHCP: Next server address (siaddr) = 0.0.0.0
DHCP: Relay agent address (giaddr) = 0.0.0.0
DHCP: Client hardware address (chaddr) = 00:16:3E:00:00:E4
DHCP:
DHCP: ----- (Options) field options -----
DHCP:
DHCP: Message type = DHCPDISCOVER
DHCP: Maximum DHCP Message Size = 1472 bytes
DHCP: IP Address Lease Time = -1 seconds
DHCP: Client Class Identifier = "SUNW.i86xpv"
DHCP: Requested Options:
DHCP:    1 (Subnet Mask)
DHCP:    3 (Router)
DHCP:    6 (DNS Servers)
DHCP:   12 (Client Hostname)
DHCP:   15 (DNS Domain Name)
DHCP:   28 (Broadcast Address)
DHCP:   43 (Vendor Specific Options)


Any suggestions or obvious thing that seems to be wrong it this setup?


thanks,

Sagun

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to