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] switch to static ip

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] switch to static ip
From: Marco Mandl <marco.mandl@xxxxxx>
Date: Fri, 20 Apr 2007 23:45:54 +0200
Delivery-date: Fri, 20 Apr 2007 14:44:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))
Hello,

I migrated a sarge installation into a domU. I did this using dhcp. That
worked fine.

But now I want to switch to static ip address.

In the corresponding xmdomain.cfg I change:
#dhcp = 'dhcp'
#vif  = [ '' ]
dhcp = "off"
ip = "192.168.17.16"
netmask = "255.255.255.0"
#broadcast = "192.168.17.255"
#network = "192.168.17.0"
gateway = "192.168.17.1"

I even tried to changed the /etc/network/interfaces of the domU:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
name Ethernet LAN card
address 192.168.17.16
netmask 255.255.255.0
broadcast 192.168.17.255
network 192.168.17.0
gateway 192.168.17.1
## The primary network interface
#auto eth0
#iface eth0 inet dhcp
## post-up ethtool -K eth0 tx off

But there is no eth0 in domU:
$ sudo ifconfig -s
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
lo    16436 0      1461      0      0      0    1461      0      0      0 LRU

Network of dom0 seems to be ok:
# ifconfig -s
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0   1500 0     42285      0      0      0    34822      0      0      0 BMRU
lo    16436 0         0      0      0      0        0      0      0      0 LRU
peth0  1500 0     43014      0      0      0    35866      0      0      0 BORU
vif0.  1500 0     34822      0      0      0    42285      0      0      0 BORU
xenbr  1500 0       342      0      0      0        0      0      0      0 BORU


What am I doing wrong?

Regards,
Marco



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>