ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Владимир Саломатин" <salomatin.ru@mail.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] DHCP, etcnet и статический адрес
Date: Fri, 04 Dec 2009 18:28:02 +0300
Message-ID: <E1NGa4g-000770-00.salomatin-ru-mail-ru@f266.mail.ru> (raw)
In-Reply-To: <4B192084.2040803@post.ru>


> Предположим у Вас на одном физическом интерфейсе 2 ip-адреса, первый 
> динамический, второй дополнительный- статика. Адреса из подсети, 
> допустим 192.168.1.1/24 и .192.168.1.2/24. Вам нужно на определенный 
> хост отправлять пакеты только с адреса 192.168.1.2/24. Сама система по 
> умолчанию подставит первичный адрес, т.е. 192.168.1.1, т.о. здесь уже 
> скорее всего придется SNAT использовать, может возможно и более 
> по-умному это сделать, но у меня щас голова уже не варит... =)
> Как мне кажется, примение ната уже несет в себе усложнение системы, что 
> в дальнейшем может вылезти в виде каких-нибудь неочевидных граблей...


Можно совсем просто, без NAT.
динамический работает как работал, его никто не трогает.
А в статическом прописывается таблица, у меня так
ipv4rule
from 192.168.1.254 table adsl
ipv4route 
default via 192.168.1.1 src 192.168.1.254 table adsl 


и все кто будет обращаться на статику получают ответ
А все остальное по динамике.

Для чего нужен статический IP. Я понял так, что люди должны знать как найти сервер и получить от него услугу. 




  reply	other threads:[~2009-12-04 15:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 15:08 Anton Ukolov
2009-12-03 15:17 ` Andrii Dobrovol`s`kii
2009-12-04  6:58   ` Anton Ukolov
2009-12-03 16:03 ` Владимир Саломатин
2009-12-04  6:55   ` Anton Ukolov
2009-12-03 17:37 ` Denis Klimov
2009-12-04  7:06   ` Anton Ukolov
2009-12-04 12:24     ` Michael Shigorin
2009-12-04 14:24       ` Anton Ukolov
2009-12-04 14:27         ` Alexander Volkov
2009-12-04 14:45           ` Anton Ukolov
2009-12-04 15:28             ` Владимир Саломатин [this message]
2009-12-07  8:29             ` Alexander Volkov
2009-12-04 13:11 ` Владимир Саломатин
2009-12-04 13:33   ` Alexander Volkov
2009-12-04 16:27 ` Yuriy Kashirin
2009-12-08 15:09   ` Anton Ukolov

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=E1NGa4g-000770-00.salomatin-ru-mail-ru@f266.mail.ru \
    --to=salomatin.ru@mail.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git