WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] not able to get my hard coded(static) ip address on Dom U

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] not able to get my hard coded(static) ip address on Dom U
From: "akhilesh kumar" <akhipatel@xxxxxxxxx>
Date: Wed, 10 Dec 2008 17:40:41 +0530
Cc:
Delivery-date: Wed, 10 Dec 2008 04:11:37 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=2i3U+9HJGi/1PIPdgqr2vsRMLXFI/RWVZsf4yr7aPYk=; b=eV9mYbv0VXTBLAvep5h7IKp44dsfixOXqlCKYGwi/42ze2Uj0cZfMK5yNJt9OKJ65b G0nAdxqkeZDsIMuZ9oxxcuYyf3aSaUsQfY5OUym6viMMwK79NgAGv5XsMLVvAOQNu27G DVMN2FwZSEVSUyFiIQF/dtfETPVH1mS6jdqW4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=sjuMqC7Rq72mN8ON7wnjOSJ6f7v+PTiSJgFH00wBHDh8sM+fK309WDHtpcZjmuvUK3 J/j0jFPG4KdO0qyVeaIewjv3U8k+p5Gy0WpHM4kertpXdSrpuchgOk/AMlJNge6YrGpg npE5YW8RawRpesJQRsaLTwN1Nl4cCR0qpO8b8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Hi All,

 

I am working on xen virtual network interface

My Dom0 and DomU is up and working fine.

With manual ip address  network  on DonU is working fine.

Example

#ifconfig

# uname -r

2.6.18.8-xenU

# ifconfig eth0 107.108.161.190 netmask 255.255.255.0

# ifconfig lo 127.0.0.1 netmask 255.255.255.0

# ping 107.108.161.116

PING 107.108.161.116 (107.108.161.116): 56 data bytes

64 bytes from 107.108.161.116: seq=0 ttl=64 time=18.735 ms

64 bytes from 107.108.161.116: seq=1 ttl=64 time=0.229 ms

[3] + Stopped                    ping 107.108.161.116

# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:16:3E:7D:29:0B

          inet addr:107.108.161.190  Bcast:107.108.161.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:75349 errors:0 dropped:0 overruns:0 frame:0

          TX packets:103 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:22187579 (21.1 MiB)  TX bytes:9989 (9.7 KiB)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.255.255.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

#

 

But I am not able to get my hard coded(static)  ip address on Dom U

I  have updated  network configuration in my DomU config file

 

Vif =['ip=107.108.161.190, vifname=veth0' ]

 

 Don 0 etc/network/interface file

auto lo

iface lo inet loopback

        address 127.0.0.1

        netmask 255.255.255.0

 

auto eth0 eth0:0

 

iface eth0 inet static

        address 107.108.161.116

        netmask 255.255.255.0

        gateway 107.108.161.1

#       pre-up /etc/init.d/xend start || true

#       up /usr/sbin/xen-net-setup.sh start

#       post-down /usr/local/sbin/xen-net-setup.sh stop

 

iface veth0:0 inet static

        address 107.108.161.190

        netmask 255.255.255.0

 

my ifcfg-eth0 for  domU.

TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=static

BROADCAST=107.108.161.255
IPADDR=107.108.161.190
NETMASK=255.255.255.0
NETWORK= 107.108.161.0
GATEWAY=107.108.161.1

 

Can any one  help

How I can get (static)  ip address on Dom U

 

Thanks,

Akhilesh


 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>