Sorry my configuration in the first email was - dom0+ dhcpserver(dom0 running a DHCP-server) that is why you see e1000g0 as well along with the r1 (vnic interface).

However in my new configuration i.e dom0+ UC-dhcp (dhcpserver domU running a DHCP-server) + UC-web (domU trying to obtain an IP address via dhcp)
The issue I see is the domU UC-web doesn't get an IP address.

Here is what I have:
On dom0
r...@lm1-dom0:~# virsh list
 Id Name                 State
----------------------------------
  0 Domain-0             running
  5 UC-web               blocked
  8 UC-dhcp              blocked
  - UC-base              shut off

r...@lm1-dom0:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.5.184.84 netmask fffffc00 broadcast 10.5.187.255
        ether 0:1e:68:49:96:98
r1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 11
        inet 172.0.84.111 netmask ffffff00 broadcast 172.0.84.255
        ether 2:8:20:e8:96:93
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128

on the domU (UC-dhcp)
bash-3.2# ifconfig xnf0
xnf0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 172.0.84.1 netmask ffffff00 broadcast 172.0.84.255
        ether 0:16:3e:7c:9b:a2

bash-3.2# dhtadm -P
Name                    Type            Value
==================================================
172.0.84.0 Macro :Subnet =255.255.255.0:Router=172.0.84.111:Broadcst=172.0.84.255: UC-dhcp Macro :Include = Locale:Timeserv = 172.0.84.1 :LeaseTim=86400:LeaseNeg:DNSdmain="network.com":DNSserv=129.147.9.5:
Locale                  Macro           :UTCoffst=-18000:

bash-3.2# pntadm -P 172.0.84.0
Client ID Flags Client IP Server IP Lease Expiration Macro Comment

00 00 172.0.84.189 172.0.84.1 Zero 172.0.84.0 00 00 172.0.84.188 172.0.84.1 Zero 172.0.84.0
[snip]


bash-3.2#  /usr/lib/inet/in.dhcpd -dv
4b0d283d:  Daemon Version: 3.5
4b0d283d:  Maximum relay hops: 4
4b0d283d:  Run mode is: DHCP Server Mode.
4b0d283d:  Datastore resource: SUNWfiles
4b0d283d:  Location: /var/dhcp
4b0d283d:  DHCP offer TTL: 10
4b0d283d:  ICMP validation timeout: 1000 milliseconds, Attempts: 1.
4b0d283d:  Owner IP address: 172.0.84.1
4b0d283d:  Maximum concurrent clients: 1024
4b0d283d:  Maximum threads: 256
4b0d283d: Read 3 entries from DHCP macro database on Wed Nov 25 07:51:09 2009
4b0d283d:  Monitor (0003/xnf0) started...
4b0d283d:  Thread Id: 0003 - Monitoring Interface: xnf0 *****
4b0d283d:  MTU: 1500    Type: SOCKET
4b0d283d:  Broadcast: 172.0.84.255
4b0d283d:  Netmask: 255.255.255.0
4b0d283d:  Address: 172.0.84.1


Running snoop on domU (UC-dhcp):
bash-3.2# snoop -v -i /var/tmp/snoop.out
ETHER:  ----- Ether Header -----
ETHER:
ETHER:  Packet 1 arrived at 7:54:13.78628
ETHER:  Packet size = 342 bytes
ETHER:  Destination = ff:ff:ff:ff:ff:ff, (broadcast)
ETHER:  Source      = 0:16:3e:48:ee:66,
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 = 11774
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 = 4ca7
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 = 0145
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 = 0xf1071626
DHCP: Time since boot = 0 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:48:EE:66
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)


 domU(UC-web) which is trying to obtain an IP address:
bash-3.2# ifconfig xnf0
xnf0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 0.0.0.0 netmask ff000000 broadcast 255.255.255.255
        ether 0:16:3e:48:ee:66

Sagun
On Nov 25, 2009, at 1:08 AM, David Edmondson wrote:

Sagun, I'm confused about your configuration. You say:

On system A the setup I have is:
dom0+ dhcpserver(domU running a DHCP-server) + dhcpclientA (domU tryng
to obtain an IP address via dhcp)

Yet your in.dhcpd invocation mentions e1000g0:

   r...@lm2-dom0:~# /usr/lib/inet/in.dhcpd -dv -i r1,e1000g0

The domU can't access e1000g0, so how can you be running in.dhcpd there?

dme.
--
David Edmondson, Sun Microsystems, http://dme.org

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to