Re: whereami
Hi Chris!
On Mon, 04 Mar 2002, Chris Halls wrote:
|> Mit testping sollst du die IP Adresse einen anderen Rechner geben z.B
|> dein Server 192.168.1.1, nicht deine IP Addresse (192.168.1.4):
So hatte ich das Anfangs ja auch verstanden. ACK.
|> if lan
|> testping eth0,192.168.1.1,192.168.1.4 home
Wozu muß denn die eigene IP da eigentlich stehen?
|> if wlan
|> testping eth1,192.168.1.1,192.168.1.6 home
|> fi
<snip>
|> Du sollst die Interface/Routing Befehle in whereami.conf einsetzen:
|>
|> -lan ifconfig eth0 down
|> +home route add default gw 192.168.1.1
|> -home route del default gw 192.168.1.1
Habe ich. Danke soweit.
Nur leider werden die entsprechenden Einträge jetzt nicht mehr
abgearbeitet. (?)
Dennoch klappt das routing ins Netz plötzlich?
Vielleicht noch ein Teil der Logs:
----------:----------------------------------------------------
whereami[1688]: 15 looking : set DEBUGWHEREAMI 1
whereami[1688]: 16 looking : default unknown
whereami[1688]: 17 looking : testmii eth0 lan
cardmgr[308]: + + /sbin/mii-tool eth0
cardmgr[308]: + + grep 'link ok'
cardmgr[308]: + + exit 1
whereami[1688]: 29 else : testmodule orinoco_cs wlan
cardmgr[308]: + + /sbin/lsmod
cardmgr[308]: + + grep orinoco_cs
whereami[1688]: ****************> Test successful - adding locations: wlan
whereami[1688]: 38 if : set INTERFACE eth0
whereami[1688]: 40 if : testping eth1,192.168.1.1,192.168.1.6 home
cardmgr[308]: + + exit 0
cardmgr[308]: + + IFACE=eth1
cardmgr[308]: + + IPTOUSE=192.168.1.6
cardmgr[308]: + + IPTOFIND=eth1,192.168.1.1
cardmgr[308]: + + '[' eth1 = eth1,192.168.1.1 ']'
cardmgr[308]: + + INTERFACE=eth1
cardmgr[308]: + + IPTOFIND=192.168.1.1
Bis hier ist mir das klar.
cardmgr[308]: + + ifconfig eth1 192.168.1.6
cardmgr[308]: + ++ fping -a -B2 -i5 -r5 -t30 192.168.1.1
cardmgr[308]: + + '[' '' = 192.168.1.1 ']'
cardmgr[308]: + + RESULT=1
cardmgr[308]: + + ifconfig eth1 0.0.0.0
Hier scheint ein Problem vorzuliegen. Warum wird letzteres ifconfig
aufgerufen?
cardmgr[308]: + + exit 1
whereami[1688]: Moving from dragonheart,eth1,wlan to eth1,wlan
cardmgr[308]: + Moving from dragonheart,eth1,wlan to eth1,wlan
cardmgr[308]: + ++ LASTLOCN=dragonheart,eth1,wlan
cardmgr[308]: + ++ LOCATION=eth1,wlan
Tja, und nu? WLAN ist doch trotzdem "home". Sollte hier jetzt nicht die
whereami.conf aufgerufen werden?
Danke.
--
Regards, GR | GnuPG-key on keyservers available
Muck, Dickbaer, Nane... | or mail -s 'get gpg-key'
Linux: Undefinierte Welten jenseits von YAST(2)
Was? Es gibt Google? Und man-pages? _Und_ HOWTO's? - Seit wann?
Reply to:
- References:
- whereami
- From: Goran Ristic <gee.r@gmx.net>
- Re: whereami
- From: Chris Halls <chris.halls@nikocity.de>