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

Re: [Xen-users] No network at all in Kubuntu 8.04

On Monday 12 May 2008 11:58:33 Age_M wrote:
> Daniel Spies schrieb:
> > On Monday 12 May 2008 11:24:16 Age_M wrote:
> >> Hi Daniel,
> >>
> >> Why does your peth0 has an ip-address?
> >
> > Good question, I don't know... What do you suggest me to do?
> > Both, eth0 and peth0 have the very same configuration and IP addresses
> > in "ifconfig -a".
> >
> > irrlicht@home:~$ cat /etc/network/interfaces
> > # This file describes the network interfaces available on your system
> > # and how to activate them. For more information, see interfaces(5).
> >
> > # The loopback network interface
> > auto lo
> > iface lo inet loopback
> > address 127.0.0.1
> > netmask 255.0.0.0
> > auto eth0
> > iface eth0 inet dhcp
>
> Try using static ip instead of dhcp in dom0. Maybe this is messing with
> your interfaces.

Okay, I did without success. But therefor I found something else:

irrlicht@home:~$ route -vn
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 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 peth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 peth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 eth0
irrlicht@home:~$ sudo route del -net 0.0.0.0 netmask 0.0.0.0 dev peth0
irrlicht@home:~$ ping google.de
PING google.de (216.239.59.104) 56(84) bytes of data.
64 bytes from 216.239.59.104: icmp_seq=1 ttl=245 time=98.7 ms
64 bytes from 216.239.59.104: icmp_seq=2 ttl=245 time=95.5 ms
64 bytes from 216.239.59.104: icmp_seq=3 ttl=245 time=99.7 ms
64 bytes from 216.239.59.104: icmp_seq=4 ttl=245 time=97.6 ms

--- google.de ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 45895ms
rtt min/avg/max/mdev = 95.598/97.932/99.708/1.575 ms

irrlicht@home:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
auto eth0
iface eth0 inet static
  address 192.168.1.2
  netmask 255.255.255.0
  network 192.168.1.0
  broadcast 192.168.1.255
  gateway 192.168.1.1
  dns-nameservers 192.168.1.1

As you can see I get the connection as soon I delete the default route via 
peth0, but I always thought that the metric is better the lower it is, so 
peth0 should never be used as default... 

For reference, my peth0 still got that IP addess:
irrlicht@home:~$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1d:60:c3:81:60
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:60ff:fec3:8160/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4280 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1954 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1240921 (1.1 MB)  TX bytes:178555 (174.3 KB)

irrlicht@home:~$ ifconfig peth0
peth0     Link encap:Ethernet  HWaddr 00:1d:60:c3:81:60
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:60ff:fec3:8160/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4560 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2178 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000
          RX bytes:1320308 (1.2 MB)  TX bytes:199415 (194.7 KB)

Thanks,
Daniel

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