|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] switch to static ip
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>
|
- [Xen-users] switch to static ip,
Marco Mandl <=
|
|
|
|
|