|
Re: lug-bg: gateway is not on a directly-connected network
- Subject: Re: lug-bg: gateway is not on a directly-connected network
- From: Tsvetin Vasilev <ceci@xxxxxx>
- Date: Fri, 03 Oct 2003 10:40:44 +0300
George Danchev wrote:
Hi
imam edin byrz vypros: kernel 2.4.20, ether switched, nalaga se da polzvam za
(default) gateway machina koqto ne e v directly-connected network-a na moqta
i se okazva, 4e ne mogat da se forword packets kym neq (tova razbiram ot
SIOCADDRT: Network is unreachable) i maj e logi4no da e taka;-)
Primer:
ifconfig eth0 192.168.A.B netmask 255.255.255.224 \
broadcast 192.168.A.255 up
route add default gw 192.168.C.D
tova plue tova:
SIOCADDRT: Network is unreachable
syotvetno (ne 4e e ot golqmo zna4enie de) tova e opisano v /etc/network/
interfaces, koeto e analogi4no na gornoto s ifconfig i route... i pri
/etc/init.d/networking restart plue i SIOCDELRT: No such process, koeto mozhe
da se o4akva ponezhe se opitva da iztrie nesystestvuvast route (koeto ne e
bolka)
Vyprosa e moga li da polzvam takyv gateway i kak to4no... spored men bi
trqbvalo da mozhe stoto default gateway-a e za prastane na paketi do networks
za koito machinata i ideq nqma kak se stiga, kato samo sama na sebe si ne
mozhe da si e default gw. A sega kak ste stiga do gw-to ako ne e v moq
subnet.
hmm da ne bi route ot paketa net-tools da se gyrbi nesto ... priemam
pedlozheniq s iproute2 tools ;-) ne sym go probal oste ... sorry 4e ne davam
netstat -nr i route -n, no box-a ne mi e bash pod ryka. 10x
Mozhesh ako ti e w edna mrezha.
W sluchaja shte stane ako si slozhish mask 255.255.0.0
no mi se struwa che neshto ti kuca w designa na mrezhata
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|