From: "Andriy Dobrovol's'kii" <dobr@iop.kiev.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Как сделать NAT
Date: Thu, 03 Feb 2005 16:47:47 +0200
Message-ID: <42023993.6040907@iop.kiev.ua> (raw)
In-Reply-To: <42021E57.3060705@inbox.ru>
Igor V.Marenkov aka some_x wrote:
> Andriy Dobrovol's'kii wrote:
>
>> Igor V.Marenkov aka some_x wrote:
>
>
> <some_x>
>
>>> Прочитал, прописал:
>>> GATEWAY=192.168.1.5
>>> и
>>> GATEWAY=192.168.1.5
>>> GATEWAYDEV=eth1
>>> Оба варианта не работают, странно... Тогда наверно тупо заталкаю
>>> команду в файл и на автозапуск.
>>>
>> Игорь, при таком уровне багрепортов, Вы долго будете работать за
>> машину...
>> Что значит не работают? Что Вы делали, чтоб заработало? Что ожидали
>> и что получили?
>
>
> Мне казалось что понятно, видимо я ошибался, и так по пунктам:
> 1.Не работает, значит таблица роутинга не меняется никоим образом и
> продолжает выглядить так:
> 192.168.2.0 * 255.255.255.0 U 0 0 0
> eth0
> 192.168.1.0 * 255.255.255.0 U 0 0 0
> eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default * 0.0.0.0 U 0 0 0
> eth0
> 2. для того что бы заработало пвтался в ifcfg-eth1 дописать
> GATEWAY=192.168.1.5 ( после чего ifdown eth1 ifup eth0) и
> GATEWAY=192.168.1.5
> GATEWAYDEV=eth1
> (после чего опять idown if up)
> 3.получил таблицу данную выше ожидал, такой таблицы:
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.2.0 * 255.255.255.0 U 0 0 0
> eth0
> 192.168.1.0 * 255.255.255.0 U 0 0 0
> eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 192.168.1.5 0.0.0.0 UG 0 0 0
> eth1
> default * 0.0.0.0 U 0 0 0
> eth0
> кторая получается после route add default gw 192.168.1.5 eth1.
>
>
У Вас М2.4?
Вы не пробовали пользоваться командой service network restart?
(После изменений в файлах настроек сети.)
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 265-7824 Department of Gas Electronics
Fax: (380-44) 265-2329 Institute of Physics of NASU
*********************************************************************
next prev parent reply other threads:[~2005-02-03 14:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 6:43 Igor V.Marenkov aka some_x
2005-02-03 7:45 ` [Comm]Как " unix9
2005-02-03 13:06 ` Igor V.Marenkov aka some_x
2005-02-03 13:13 ` Re[2]: " Sergey A. Kolesnitchenko
2005-02-03 17:46 ` Igor V.Marenkov aka some_x
2005-02-04 11:09 ` Re[2]: " Sergey A. Kolesnitchenko
2005-02-03 14:16 ` unix9
2005-02-03 17:34 ` [Comm]Как " Igor V.Marenkov aka some_x
2005-02-03 19:58 ` Denis Kirienko
2005-02-04 8:09 ` Igor V.Marenkov aka some_x
2005-02-04 8:14 ` Alexey I. Froloff
2005-02-04 18:21 ` Igor V.Marenkov aka some_x
2005-02-03 8:07 ` [Comm] Как " Genix
2005-02-03 10:55 ` Igor V.Marenkov aka some_x
2005-02-03 12:10 ` Andriy Dobrovol's'kii
2005-02-03 12:51 ` Igor V.Marenkov aka some_x
2005-02-03 14:47 ` Andriy Dobrovol's'kii [this message]
2005-02-03 17:53 ` Igor V.Marenkov aka some_x
2005-02-03 19:39 ` Denis Kirienko
2005-02-03 20:59 ` Igor V.Marenkov aka some_x
2005-02-10 13:48 ` georg l k.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42023993.6040907@iop.kiev.ua \
--to=dobr@iop.kiev.ua \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git