From: Denis Kirienko <kirienko@mccme.ru> To: community@altlinux.ru Subject: [Comm] Как настроить шлюз в инет? Date: Thu, 16 Dec 2004 19:15:05 +0300 Message-ID: <20041216191505.2f044fc6.kirienko@mccme.ru> (raw) Добрый вечер! Помогите пожалуйста, нужно срочно настроить шлюз в инет, никогда этого не делал. Поставил Master 2.4 в качестве шлюза, настроил два сетевых интерфейса: eth0 имеет белый IP 212.65.71.74, он подключен к ADSL-модему, его IP 212.65.71.73, это для него это шлюз в инет. eth1 имеет IP 172.16.8.250, в него воткнут hub. В тот же hub воткнута локальная машина, на ней IP прописан в 172.16.8.249 и 172.16.8.250 указан в качестве шлюза. Настройки на шлюзе: # ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:18:5B:5C:F1 inet addr:212.65.71.74 Bcast:212.65.71.79 Mask:255.255.255.248 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2009 errors:0 dropped:0 overruns:0 frame:0 TX packets:329 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:161967 (158.1 Kb) TX bytes:19307 (18.8 Kb) Interrupt:10 Base address:0xd400 eth1 Link encap:Ethernet HWaddr 00:A0:24:6D:31:95 inet addr:172.16.8.250 Bcast:172.16.8.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:111 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8009 (7.8 Kb) TX bytes:1978 (1.9 Kb) Interrupt:11 Base address:0x9400 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:33 errors:0 dropped:0 overruns:0 frame:0 TX packets:33 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7534 (7.3 Kb) TX bytes:7534 (7.3 Kb) # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 212.65.71.72 * 255.255.255.248 U 0 0 0 eth0 172.16.8.0 * 255.255.255.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 212.65.71.73 0.0.0.0 UG 0 0 0 eth0 В /etc/sysctl.conf исправил net.ipv4.ip_forward = 1 Сделал # service network restart # cat /proc/sys/net/ipv4/ip_forward 1 iptables на шлюзе не установлено. С локальной машины 172.16.8.249 пингуется 172.16.8.250, пингуется 212.65.71.74 (наружний интерфейс шлюза, то есть пакеты уходят куда надо), но не пингуется 212.65.71.73 (ADSL-модем). С шлюза пингуется и модем, и инет, и локальная машина. Что я забыл сделать? -- Денис
next reply other threads:[~2004-12-16 16:15 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-12-16 16:15 Denis Kirienko [this message] 2004-12-16 16:29 ` Jury Levykin 2004-12-16 16:43 ` Denis Kirienko 2004-12-16 17:03 ` Denis Kirienko 2004-12-16 20:34 ` Jury Levykin 2004-12-16 20:43 ` Denis Kirienko 2004-12-16 16:30 ` Alexey S. Kuznetsov 2004-12-16 16:35 ` Jury Levykin 2004-12-16 20:08 ` Re[2]: " Alexey S. Kuznetsov 2004-12-16 19:28 ` Sergey Vlasov 2004-12-17 5:59 ` Mike Lykov 2004-12-17 6:15 ` Шишков Евгений 2004-12-17 11:20 ` Re[2]: " Alexey S. Kuznetsov 2004-12-20 15:03 ` Andrey Rahmatullin 2004-12-20 16:28 ` [Comm] " Michael Shigorin 2004-12-20 22:33 ` [Comm] " Alexey S. Kuznetsov 2004-12-20 20:50 ` Denis Kirienko 2004-12-20 23:19 ` Alexey S. Kuznetsov 2004-12-22 13:49 ` [Comm] " Michael Shigorin 2004-12-21 9:55 ` [Comm] " Oleg Shulga 2004-12-21 5:01 ` Mike Lykov 2004-12-22 13:49 ` [Comm] iptables vs ipchains (was: Как настроить шлюз в инет?) Michael Shigorin 2004-12-22 14:13 ` [Comm] iptables vs ipchains Andriy Dobrovol's'kii 2004-12-22 14:25 ` Alexey Morsov 2004-12-22 14:47 ` Serge Polkovnikov 2004-12-22 14:53 ` Igor Solovyov 2004-12-22 14:59 ` Serge Polkovnikov 2004-12-22 15:00 ` Alexey I. Froloff 2004-12-22 15:43 ` [Comm] iptables vs ipchains [JT] Denis Kirienko 2004-12-22 15:00 ` [Comm] IA: iptables bolvanka, fixed version (was: iptables vs ipchains) Michael Shigorin 2004-12-22 16:22 ` Andrey Rahmatullin 2004-12-22 17:05 ` [Comm] dotfiles.com Michael Shigorin 2004-12-22 17:51 ` [Comm] IA: iptables bolvanka, fixed version (was: iptables vs ipchains) Maxim Tyurin 2004-12-22 15:30 ` [Comm] iptables vs ipchains (was: Как настроить шлюз в инет?) Alexey S. Kuznetsov 2004-12-22 15:39 ` Denis Kirienko
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=20041216191505.2f044fc6.kirienko@mccme.ru \ --to=kirienko@mccme.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