Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: gateway is not on a directly-connected network


  • Subject: Re: lug-bg: gateway is not on a directly-connected network
  • From: Vesselin Kolev <vlk@xxxxxxxxxxxxxxxxx>
  • Date: Fri, 3 Oct 2003 10:33:38 +0300
  • Organization: Laboratory of Chemical Physics & Engineering, University of Sofia, Bulgaria

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ako ne se lyzha, pyrvo traibva da obiavish gatrway hosta ili mrezhata mu,
che sa dostypni bez gateway.

Davam primer:

Ti imash interface: 192.168.1.2/24 -> dev eth0

Gateway-a obache e 192.168.2.1

Mozhesh da napravish slednia nomer:

ip route add 192.168.2.1 dev eth0
ip route del default
ip route add default via 192.168.2.1 dev eth0


I taka si raboti...

  Pozdravi
     Beco

On Friday 03 Oct 2003 09:42, 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/fSZZ+48lZPXaa+MRAgyKAKDNVX51s0KnSSNj+IJek+q87/NKcACfXe44
0kZPe9FL01ojsIiQud8BOPo=
=JUIA
-----END PGP SIGNATURE-----

============================================================================
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
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.