[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wifi et nfs



On Thu, Sep 04, 2003 at 05:20:43PM +0000, François Boisson wrote:
> Pas tout compris dans ton histoire, pour "tuer" eth0, fais tout simplement
> # ifconfig eth0 down

Voici en images ce que je veux dire :

gizmotronics:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:70:02:0E:B2
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2d0:70ff:fe02:eb2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:1360 (1.3 KiB)
          Interrupt:5 Base address:0xf00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
(...)

gizmotronics:~# ifconfig eth0 down
gizmotronics:~# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:70:02:0e:b2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global eth0
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0

gizmotronics:~# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
(...)

Pourquoi donc ip voit-il toujours eth0?

Ensuite, j'initialise wlan0 :

gizmotronics:~# ifup wlan0

gizmotronics:~# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:70:02:0e:b2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global eth0
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
4: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:09:5b:67:4a:85 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global wlan0
    inet6 fe80::209:5bff:fe67:4a85/64 scope link

gizmotronics:~# ip route
192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.2
default via 192.168.0.1 dev wlan0

gizmotronics:~# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
(...)

wlan0     Link encap:Ethernet  HWaddr 00:09:5B:67:4A:85
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::209:5bff:fe67:4a85/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:704 errors:0 dropped:0 overruns:0 frame:0
          TX packets:836 errors:2 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:120381 (117.5 KiB)  TX bytes:104131 (101.6 KiB)
          Interrupt:10 Memory:d1c98000-d1c99000

Encore une fois, ifconfig me dit que tout va bien, et ip voit un problème.

À ce moment, j'ai un bon accès à 192.168.0.0/24, mais je ne peux pas
pinguer l'extérieur.

Je retire son IP à eth0 :

gizmotronics:~# ip addr del 192.168.0.2 dev eth0

gizmotronics:~# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:d0:70:02:0e:b2 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
4: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:09:5b:67:4a:85 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global wlan0
    inet6 fe80::209:5bff:fe67:4a85/64 scope link

j'essaye de monter un répertoire en nfs :

gizmotronics:~# mount /moulinette/log/

là ça bloque :(


> Si j'ai bien compris, tu as une machine serveur passerelle avec eth0 ->
> ADSL 10.0.0.1 et du wifi entre les deux avec wlan0.
> Que donne les commandes "route -n" sur les 2 machinbes?

gizmotronics:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0

moulinette:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
62.4.16.247     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
0.0.0.0         62.4.16.247     0.0.0.0         UG    0      0        0 ppp0

Merci pour ton aide.

-- 
Charles



Reply to: