ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivanov Maxim <ivanov@amos.ru>
To: Dmitry Lebkov <community@altlinux.ru>
Subject: Re[2]: [Comm] Маршрутизация не получается
Date: Fri, 16 Jan 2004 16:48:08 +0300
Message-ID: <141170559046.20040116164808@amos.ru> (raw)
In-Reply-To: <20040116224430.6c01427f.dima@sakhalin.ru>

Здравствуйте, Dmitry.

Вы писали 16 января 2004 г., 15:44:30:

DL> On Fri, 16 Jan 2004 14:26:27 +0300
DL> Ivanov Maxim <ivanov@amos.ru> wrote:

>> Здравствуйте, community.
>> 
>> Понимаю, что это азы, но что-то сегодня какой-то ступор напал.
>> Ситуация: Мастер 2.2 без Сизифа. Две сетвых карты Intel eepro100.
>> eth0 192.168.0.3
>> eth1 192.168.1.1
>> 
>> В proc/sys/net/ipv4/ip_forward поставил 1
>> 
>> Прописал:
>> route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0
>> route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
>> 
>> С самого сервака все пингуется. И машина, подключенная к eth1 - тоже
>> (IP 192.168.1.2).
>> С машины, подключенной на eth0 - пингуется только сам eth1 (т.е.
>> 192.168.1.1), а дальше - все, ступор, пакеты не ходят.
>> 
>> Iptables на серваке еще нет, должно быть все доступно. Где грабли?

DL> На сервере:

DL> # ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:A0:C9:33:F1:BA
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4385 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:2668909 (2.5 Mb)  TX bytes:2006920 (1.9 Mb)
          Interrupt:10 Base address:0xe800 

eth1      Link encap:Ethernet  HWaddr 00:A0:C9:21:FD:E0  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:271 errors:0 dropped:0 overruns:0 frame:0
          TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:25415 (24.8 Kb)  TX bytes:9127 (8.9 Kb)
          Interrupt:12 Base address:0xec00 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1028 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1028 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72874 (71.1 Kb)  TX bytes:72874 (71.1 Kb)
 

DL> # netstat -rn

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth1


DL> # iptables -Ln


Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


DL> # cat /proc/sys/net/ipv4/ip_forward

1

DL> На клиентах:
DL> netstat -rn

          0.0.0.0          0.0.0.0      192.168.0.3    192.168.0.61       20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.0.0    255.255.255.0     192.168.0.61    192.168.0.61       20
     192.168.0.61  255.255.255.255        127.0.0.1       127.0.0.1       20
    192.168.0.255  255.255.255.255     192.168.0.61    192.168.0.61       20
      192.168.1.0    255.255.255.0      192.168.0.3    192.168.0.61       1
  255.255.255.255  255.255.255.255     192.168.0.61    192.168.0.61       1
Основной шлюз:         192.168.0.3
===========================================================================


DL> Результаты работs команд - в студию.


Они и есть.


-- 
С уважением,
 Ivanov                         



  reply	other threads:[~2004-01-16 13:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16 11:26 Ivanov Maxim
2004-01-16 11:49 ` Дворников Михаил
2004-01-16 11:58   ` Re[2]: " Ivanov Maxim
2004-01-16 12:17     ` Дворников Михаил
2004-01-16 12:31       ` Re[2]: " Ivanov Maxim
2004-01-16 12:34         ` Arkadiy Pavlik
2004-01-16 12:41           ` Re[2]: " Ivanov Maxim
2004-01-16 12:45             ` Arkadiy Pavlik
2004-01-16 13:48               ` Re[2]: " Ivanov Maxim
2004-01-16 12:36     ` [Comm] " Vitaly Ostanin
2004-01-16 11:54 ` [Comm] " Dmitriy Shcherbakov
2004-01-16 12:22 ` Andriy Dobrovol's'kii
2004-01-16 12:33   ` Re[2]: " Ivanov Maxim
2004-01-16 12:44 ` Dmitry Lebkov
2004-01-16 13:48   ` Ivanov Maxim [this message]
2004-01-16 13:05 ` Gennadiy Redko
2004-01-16 13:14   ` Re[2]: " Andrew Nazarkin
2004-01-16 13:26     ` Gennadiy Redko
2004-01-16 13:50     ` Re[3]: " Ivanov Maxim
2004-01-16 13:49   ` Re[2]: " Ivanov Maxim

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=141170559046.20040116164808@amos.ru \
    --to=ivanov@amos.ru \
    --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