|
lug-bg: gateway is not on a directly-connected network
- Subject: lug-bg: gateway is not on a directly-connected network
- From: George Danchev <danchev@xxxxxxxxx>
- Date: Fri, 3 Oct 2003 09:42:56 +0300
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.
--
pub 4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
============================================================================
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
============================================================================
|
|
|