• [^] # Re: Histoire de routes

    Posté par . En réponse au message Xen + bridge + nat --> ca marche pas. Évalué à 1.

    Merci de ta réponse.
    Normalement, la configuration en routeur est déjà faite par le echo 1 > /proc/sys/net/ipv4/ip_forward non ?

    sinon, voici mes ifconfigs et route :

    sur l'hote:

    # ifconfig
    dummy0 Link encap:Ethernet HWaddr CA:C9:8C:46:D9:B0
    inet addr:10.0.0.254 Bcast:10.0.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:258 (258.0 b)

    eth0 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF
    inet addr:11.11.11.11 Bcast:11.11.11.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MTU:1500 Metric:1
    RX packets:3057 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1662 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:318320 (310.8 KiB) TX bytes:271341 (264.9 KiB)
    Interrupt:20 Base address:0x2000

    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:44 errors:0 dropped:0 overruns:0 frame:0
    TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:4130 (4.0 KiB) TX bytes:4130 (4.0 KiB)

    pdummy0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:1822 (1.7 KiB)

    vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:3 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:258 (258.0 b) TX bytes:0 (0.0 b)

    vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:3 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:216 (216.0 b) TX bytes:0 (0.0 b)


    # route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 dummy0
    11.11.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 11.11.11.254 0.0.0.0 UG 0 0 0 eth0


    et sur mon domU

    # ifconfig
    eth0 Link encap:Ethernet HWaddr 00:16:3E:19:EC:3F
    inet addr:10.0.0.1 Bcast:10.99.100.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:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:42 (42.0 b) TX bytes:356 (356.0 b)

    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:4 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:272 (272.0 b) TX bytes:272 (272.0 b)


    # route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.0.00.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 10.0.0.254 0.0.0.0 UG 0 0 0 eth0