akhilesh kumar
2008-Dec-10 12:10 UTC
[Xen-users] not able to get my hard coded(static) ip address on Dom U
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@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2008-Dec-10 12:41 UTC
Re: [Xen-users] not able to get my hard coded(static) ip address on Dom U
First off, if you want help. don''t go out of your way to annoy those you are requesting help from ! Set your client to text only so that it posts : address 107.108.161.190 rather than : address <http://107.108.161.190>107.108.161.190 akhilesh kumar wrote:>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 helpYou could try not assigning the same address to two different machines ! -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users