ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Serg N. Boltushkin" <bscoder@mail.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] два ip для сетевой карты и iptables
Date: Tue, 24 Jan 2006 18:12:20 +0300
Message-ID: <43D643D4.4030305@mail.ru> (raw)
In-Reply-To: <43D62A54.2040803@mail.ru>

Laaz Vadim пишет:

> есть два интерфейса на одной сетевой карте:
>
> # cat /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE=eth1
> BOOTPROTO=static
> IPADDR=192.168.0.1
> NETMASK=255.255.255.0
>
> # cat /etc/sysconfig/network-scripts/ifcfg-eth1:1
> DEVICE=eth1:1
> BOOTPROTO=static
> IPADDR=192.168.1.1
> NETMASK=255.255.255.0
>
> iptables -A INTPUT -i eth1:1 ...
> ругается, можно ли задать что нибудь вроде алиаса для eth1:1 чтобы в
> iptables ссылаться на него?

А зачем на него ссылаться.
Ведь  пакеты пришедшие на  192.168.0.1 и на 192.168.1.1 на самом деле
пришли на одно
физическое сетевое устройство - "eth1"  и отличаются лишь адресом получателя

ЗЫ: Может я чего не понял?




  parent reply	other threads:[~2006-01-24 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-24 13:23 Laaz Vadim
2006-01-24 14:59 ` Nikolay A. Fetisov
2006-01-24 15:12 ` Serg N. Boltushkin [this message]
2006-01-25  8:56   ` Laaz Vadim
2006-01-25 10:16     ` Anton Gorlov

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=43D643D4.4030305@mail.ru \
    --to=bscoder@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