|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] help with xen networking on debian
Thanks Sadique, but it dodnt work :(
Here's the errors i got:
moya:/# route add default gw 192.168.0.1 dev xenbr0
SIOCADDRT: Network is unreachable
moya:/# route del default gw 192.168.0.1 dev eth0
SIOCDELRT: No such process
also, tried 192.168.1.0 and 1.1 but no luck.
On 4/21/06, Sadique <sadique@xxxxxxxxxxxxxxxxxxx> wrote:
Can you please try this in your main server moya?
route add default gw 192.168.0.1 dev xenbr0
route del default gw 192.168.0.1 dev eth0
pinunki wrote:
>hi everyone,
>
>i've managed to install xen on sid and sarge, using this useful howto:
>http://www.debian-administration.org/articles/320
>
>i've got my virtual machine to startup, but networking doesnt really work!
>
>my setup is as follows:
>i have a router/gateway 192.168.1.1
>my base host (moya) is 192.168.1.4
>my virtual server (test18) is 192.168.1.18
>
>from the virtual server, i can ping the base host and from the base
>host i can ping the server. however, when i try and ping the gateway,
>or anywhere else from the vitual server i get:
>"From 192.168.1.18 icmp_seq=1 Destination Host Unreachable"
>
>i also tried installing on sid and got exactly the same problem. i'm
>not trying to do any fancy networking, just to get it working "out of
>the box" :)
>
>here is some info from moya (base host):
>
>/etc/network/interfaces
>--------------------------------
>hamish@moya:~$ cat /etc/network/interfaces
># This file describes the network in
>terfaces 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
>
># The primary network interface
>auto eth0
>iface eth0 inet static
> address 192.168.1.4
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
> # dns-* options are implemented by the resolvconf package, if installed
> dns-nameservers 210.55.12.1
>
>
>route
>-------
>moya:/home/hamish# route
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>localnet * 255.255.255.0 U 0 0 0 eth0
>default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
>
>
>ifconfig
>----------
>
>moya:/home/hamish# ifconfig
>eth0 Link encap:Ethernet HWaddr 00:13:72:FC:C0:66
> inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::213:72ff:fefc:c066/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2783 errors:0 dropped:0 overruns:0 frame:0
> TX packets:738 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:196151 (191.5 KiB) TX bytes:70241 (68.5 KiB)
>
>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:8 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
>
>peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:2732 errors:0 dropped:0 overruns:0 frame:0
> TX packets:755 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:204077 (199.2 KiB) TX bytes:76453 (74.6 KiB)
> Interrupt:16
>
>vif0.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:738 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2788 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:70241 (68.5 KiB) TX bytes:196537 (191.9 KiB)
>
>vif4.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:35 errors:0 dropped:0 overruns:0 frame:0
> TX packets:174 errors:0 dropped:140 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1638 (1.5 KiB) TX bytes:10466 (10.2 KiB)
>
>xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2246 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:107032 (104.5 KiB) TX bytes:378 (378.0 b)
>
>
>/etc/xen-tools/xen-tools.conf
>-----------------------------------------
>moya:/home/hamish# cat /etc/xen-tools/xen-tools.conf
>#
># /etc/xen-tools/xen-tools.conf
>#
># Global configuration file for the scripts included with Xen-tools.
>#
># Values may be set here so they don't need to be used upon the
># command line.
>#
># e.g. --hostname=bob becomes 'hostname = bob'.
># --fs=ext3 becomes 'fs = ext3'.
>#
>#
>#
>
>
>##
># Output directory. Images are stored beneath this directory, one
># subdirectory per hostname.
>##
>dir = /home/xen
>
>##
># If you don't wish to use loopback images, stored beneath the directory
># specified above with 'dir' then you may give an LVM volume name
># instead:
>#
>##
># volume = xen-volume
>
>##
># Disk and Sizing options.
>##
>size = 2Gb # Disk image size.
>memory = 128Mb # Memory size
>swap = 128Mb # Swap size
>fs = ext3 # use EXT3 filesystems
>dist = sarge # Default distribution to install.
>
>
>
>##
># Networking setup values.
>##
>
>#
># Uncomment these if you wish to use a static address via the --ip flag.
>#
>gateway = 192.168.1.1
>netmask = 255.255.255.0
>#
># Uncomment this if you wish the images to use DHCP
>#
># dhcp = 1
>
>
>##
># Misc options
>##
>
>#
># Uncomment the following line if you wish to disable the caching
># of downloaded .deb files.
>#
># cache = no
>#
>
>#
># Uncomment the following line if you wish to interactively setup
># a new root password for images.
>#
># passwd = 1
>
>#
># Default kernel for the virtual servers
>#
>kernel = /boot/xen-linux-2.6.12.6-xen
>
>
>#
># Default mirror for debootstrap
>#
>mirror = http://ftp.us.debian.org/debian/
>
>#
># Uncomment if you wish newly created images to boot automatically.
>#
>
># boot = 1
>
>
>command to create xen virtual server
>-----------------------------------------------------
>
>xen-create-image --ip=192.168.1.18 --hostname=test18
>
>
>here is some info from the virtual server:
>
>/etc/network/interfaces
>--------------------------------
>test18:~# 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
>
># The primary network interface
>auto eth0
>iface eth0 inet static
> address 192.168.1.18
> gateway 192.168.1.1
> netmask 255.255.255.0
>
>
>route
>-------
>test18:~# route
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
>default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
>
>
>ifconfig
>----------
>test18:~# ifconfig
>eth0 Link encap:Ethernet HWaddr 00:16:3E:7F:CB:D4
> inet addr:192.168.1.18 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::216:3eff:fe7f:cbd4/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:322 errors:0 dropped:0 overruns:0 frame:0
> TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:19958 (19.4 KiB) TX bytes:1890 (1.8 KiB)
>
>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:14 errors:0 dropped:0 overruns:0 frame:0
> TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1284 (1.2 KiB) TX bytes:1284 (1.2 KiB)
>
>
>any help on this would be much appreciated! :)
>
>thanks,
>hamish
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users
>
>
>
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|