The Perfect Xen 3.1.0 Setup For Debian Etch (i386)

Discussion in 'HOWTO-Related Questions' started by ko0nz, Jun 11, 2007.

  1. ko0nz

    ko0nz New Member

    hi,

    i'm testing xen 3.1 in a debian testing several time:
    - firstly, my installing stopped before installing xen-tools
    and i can't have access to the network, neither my gw.
    i can ping my own adress but i can't ping else.

    - lastly, my installation stopped before installing xen-tools and
    after reboot of the xen kernel in a new station, i can ping my network x.x.2.x, my gw x.x.2.1
    but i can't ping x.x.10.x
    my network is a vlan : x.x.2.x and x.x.10.x are different network.

    is there something wrong about the network with xen 3.1 and debian ?

    thanks in adavance for your help.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What exactly did you change in your network settings? What's in /etc/network/interfaces, what's the output of
    Code:
    ifconfig
    ?
     
  3. ko0nz

    ko0nz New Member

    static IP: 172.20.2.160
    gateway: 172.20.2.1

    # cat /etc/network/interfaces

    auto lo
    iface lo inet loopback

    iface eth0 inet static
    address 172.20.2.160
    netmask 255.255.255.0
    gateway 172.20.2.1
    auto eth0

    eth0 Lien encap:Ethernet HWaddr 00:0F:FE:6B:57:32
    inet adr:172.20.2.160 Bcast:172.20.2.255 Masque:255.255.255.0
    adr inet6: fe80::20f:feff:fe6b:5732/64 Scope:Lien
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:2 errors:0 dropped:0 overruns:0 frame:0
    TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    RX bytes:140 (140.0 b) TX bytes:3370 (3.2 KiB)

    lo Lien encap:Boucle locale
    inet adr:127.0.0.1 Masque:255.0.0.0
    adr inet6: ::1/128 Scope:Hôte
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:286 errors:0 dropped:0 overruns:0 frame:0
    TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    RX bytes:23600 (23.0 KiB) TX bytes:23600 (23.0 KiB)

    peth0 Lien encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    inet adr:169.254.249.7 Bcast:169.254.255.255 Masque:255.255.0.0
    adr inet6: fe80::fcff:ffff:feff:ffff/64 Scope:Lien
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:322 errors:0 dropped:481 overruns:0 frame:0
    TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:100
    RX bytes:53172 (51.9 KiB) TX bytes:7674 (7.4 KiB)
    Adresse de base:0x1100 Mémoire:f0500000-f0520000

    vif0.0 Lien encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    adr inet6: fe80::fcff:ffff:feff:ffff/64 Scope:Lien
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:32 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    RX bytes:3370 (3.2 KiB) TX bytes:210 (210.0 b)

    xenbr0 Lien encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:32 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    RX bytes:2922 (2.8 KiB) TX bytes:168 (168.0 b)

    Table de routage IP du noyau
    Destination Passerelle Genmask Indic MSS Fenêtre irtt Iface
    172.20.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 peth0
    0.0.0.0 172.20.2.1 0.0.0.0 UG 0 0 0 eth0
     
  4. ko0nz

    ko0nz New Member

    perhaps :
    # cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    iface eth0 inet static
    address 172.20.2.160
    netmask 255.255.255.0
    gateway 172.20.2.1
    auto eth0

    ---------->
    auto lo
    iface lo inet loopback
    iface eth0 inet static
    address 172.20.2.160
    netmask 255.255.255.0
    network 172.20.0.0
    broadcast 172.20.2.255 <---------
    gateway 172.20.2.1 <---------------
    auto eth0

    hmm...i can't tried it because i uninstalled xen 3.1
    well i think i am going to have a try again...:)
     
  5. ko0nz

    ko0nz New Member

    well, with this change, i can't ping something out of my network yet...
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please try network 172.20.2.0 instead.

    This link might help you: http://www.subnetmask.info/
     
  7. ko0nz

    ko0nz New Member

    sorry, but i was already with
    network 172.20.2.0
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Can you post the output of
    Code:
    cat /etc/network/interfaces
    again, but this time put CODE tags around it so that I can see the formatting? The leading spaces are important.
     
  9. ko0nz

    ko0nz New Member

    Code:
    auto lo
    iface lo inet loopback
    
    #auto xenbr0
    #iface  xenbr0 inet static
    #       address 172.20.2.160
    #       netmask 255.255.255.0
    #       network 172.20.2.0
    #       broadcast 172.20.2.255
    #       gateway 172.20.2.1
    #       bridge_ports eth0
     # optional
    #       bridge_maxwait 0
    
    
    auto eth0
    iface eth0 inet static
     address 172.20.2.160
     netmask 255.255.255.0
     network 172.20.2.0
     broadcast 172.20.2.255
     gateway 172.20.2.1

    it's strange that i can't ping the gateway, neither the subnet 172.20.2.x
     

Share This Page