From: tneo <tneo@mail.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Как настроить инет через сеть?
Date: Sun, 29 Apr 2007 18:30:29 +0400
Message-ID: <E1HiAQ1-000Mgv-00.tneo-mail-ru@f70.mail.ru> (raw)
In-Reply-To: <463472C3.8040700@gmail.com>
>
> Из документации к ALC-2.3:
>
> Настройка роутера
>
> Рассмотрим случай, когда доступ в Интернет для роутера уже настроен.
> Теперь необходимо сделать его шлюзом в Интернет для машин во внутренней
> сети. Предположим, что внутренняя сеть работает через eth0.
>
> # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
>
> Следующей командой компьютер с Linux превращается в маршрутизатор.
> # cat 1 > /proc/sys/net/ipv4/ip_forward
>
> Теперь производим маскарадинг:
> # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE
>
> Остатся создать локальный DNS-сервер:
> # apt-get install bind # /etc/init.d/bind start
>
> Настройка роутера
> В сетевых настройках клиента необходимо указать следующие настройки:
>
> static IP
> от 192.168.0.2 до 192.168.0.254
> netmask
> 255.255.255.0
> DNS
> 192.168.0.1
> Шлюз (gateway)
> 192.168.0.1
>
> В настройках браузера указываем, что подключение происходит по локальной
> сети.
А где именно указывать это?
И что то не получается :(
Может еще нужно было сказать что инет доступен только на машине с кубунту, работает он через Ethernet
модем подключенный к сетевой eth0 ip 192,168,1,2шлюз 192,168,1,1. + на ней сетевая eth2 ip 192.168.0.1
по которой она и подключена к машине с alt linux
На alt сетевая eth0 ip 192.168.0.2
Из написанного выше я понял - все до "Настройка роутера" относится к бубунте, а остальное к альту
Или не так?
next prev parent reply other threads:[~2007-04-29 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 10:02 tneo
2007-04-29 10:15 ` Serge
2007-04-29 10:26 ` Motsyo Gennadi aka Drool
2007-04-29 14:30 ` tneo [this message]
2007-04-29 14:48 ` Motsyo Gennadi aka Drool
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=E1HiAQ1-000Mgv-00.tneo-mail-ru@f70.mail.ru \
--to=tneo@mail.ru \
--cc=community@lists.altlinux.org \
/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