All of lore.kernel.org
 help / color / mirror / Atom feed
* Networking problems with debian packages
@ 2005-03-03 11:13 Christian Wicke
  2005-03-03 11:37 ` Leigh Brown
  2005-03-03 14:45 ` Gerd Knorr
  0 siblings, 2 replies; 13+ messages in thread
From: Christian Wicke @ 2005-03-03 11:13 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 4207 bytes --]

Hello,

my domain-0 loses it network when xend starts.
It uses a dhcp client on eth0 to receive its ip address (192.168.1.2). 

If I run 
$ dhclient xen-br0
$ /etc/init.d/networking restart

then I have the network, but route shows now two routes to 192.168.1.0:
$ LANG=EN route -n
Kernel IP routing table
Destination     Gateway        Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0        255.255.255.0   U     0      0        0 xen-br0
192.168.1.0     0.0.0.0        255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1    0.0.0.0         UG    0      0        0 xen-br0

Does anyone know what is the correct way to make this work?


A second problem: I cannot ping to domU.

I think the problem is that there is no IP4-address assigned to to the vif 
interface. But assigning an ip address with ifconfig didn't help

Here is the output from ifconfig after I started my domU:
eth0      Link encap:Ethernet  HWaddr 00:00:E2:7D:84:FA
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::200:e2ff:fe7d:84fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4269 (4.1 KiB)  TX bytes:8874 (8.6 KiB)
          Interrupt:10 Base address:0x7000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2065 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:130380 (127.3 KiB)  TX bytes:130380 (127.3 KiB)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:924 (924.0 b)  TX bytes:70 (70.0 b)

xen-br0   Link encap:Ethernet  HWaddr 00:00:E2:7D:84:FA
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4497 (4.3 KiB)  TX bytes:378 (378.0 b)

I searched for both problems in the mailing list but couldn't find anything 
that helped me.

I attached the config for the domU.
My /etc/network/interfaces looks like this:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.5.2
        netmask 255.255.255.0
        network 192.168.5.0
        gateway 192.168.5.1

route on domU gave:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.5.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.5.1     0.0.0.0         UG    0      0        0 eth0

ifconfig on domU gave
eth0      Link encap:Ethernet  HWaddr AA:00:00:03:C8:C3
          inet addr:192.168.5.2  Bcast:192.168.5.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:70 (70.0 b)  TX bytes:2016 (1.9 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1368 (1.3 KiB)  TX bytes:1368 (1.3 KiB)

I use Adam Heath's latest (2.0.4-4) packages from 
http://people.debian.org/~doogie/packages/ on debian sarge

Thanks a lot for your help
Christian

[-- Attachment #2: speedyU.conf --]
[-- Type: text/plain, Size: 2962 bytes --]

#  -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm create'.
# You use a separate script for each domain you want to create, or 
# you can set the parameters for the domain on the xm command line.
#============================================================================

#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/xen-linux-2.6.10cxu3"

# Optional ramdisk.
ramdisk = "/boot/initrd.img-2.6.10cxu3"

# The domain build function. Default is 'linux'.
#builder='linux'

# Initial memory allocation (in megabytes) for the new domain.
memory = 64

# A name for your domain. All domains must have different names.
name = "speedyU"

# Which CPU to start domain on? 
#cpu = -1   # leave to Xen to pick

#----------------------------------------------------------------------------
# Define network interfaces.

# Number of network interfaces. Default is 1.
#nics=1

# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
#vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]

#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.

#disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:vg2/xenU,sda1,w', 'phy:vg2/xenUswap,sda2,w' ]
#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
# You only need to define the IP parameters and hostname if the domain's
# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
# You can use 'extra' to set the runlevel and custom environment
# variables used by custom rc scripts (e.g. VMID=, usr= ).

# Set if you want dhcp to allocate the IP address.
#dhcp="dhcp"
# Set netmask.
netmask="255.255.255.0"
# Set default gateway.
gateway="192.168.5.1"
# Set the hostname.
#hostname= "vm%d" % vmid
hostname= "speedyU"
ip = "192.168.5.2"

# Set root device.
root = "/dev/sda1 ro"

# Root device for nfs.
#root = "/dev/nfs"
# The nfs server.
#nfs_server = '169.254.1.0'  
# Root directory on the nfs server.
#nfs_root   = '/full/path/to/root/directory'

# Sets runlevel 4.
extra = "4"

#----------------------------------------------------------------------------
# Set according to whether you want the domain restarted when it exits.
# The default is 'onreboot', which restarts the domain when it shuts down
# with exit code reboot.
# Other values are 'always', and 'never'.

#restart = 'onreboot'

#============================================================================

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-03-05  9:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 11:13 Networking problems with debian packages Christian Wicke
2005-03-03 11:37 ` Leigh Brown
2005-03-03 12:58   ` Christian Wicke
2005-03-03 18:48     ` Nicholas Lee
2005-03-03 21:14       ` Christian Wicke
2005-03-04 21:15         ` Nicholas Lee
2005-03-05  9:12           ` Christian Wicke
2005-03-05  9:19             ` Nicholas Lee
2005-03-03 16:26   ` Christian Wicke
2005-03-03 17:44   ` Adam Heath
2005-03-04 16:16     ` B.G. Bruce
2005-03-03 14:45 ` Gerd Knorr
2005-03-04 21:22   ` Nicholas Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.