From: Matthew Crocker <matthew@crocker.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] ethernet sub-interfaces??
Date: Tue, 11 Feb 2003 14:52:50 +0000 [thread overview]
Message-ID: <marc-lartc-104497522330174@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104496685419776@msgid-missing>
On Tue, 2003-02-11 at 08:57, Luis Miguel Cruz Miranda wrote:
> I know that but I am looking for another way if it is possible.
>
How about using fwmark to tag a subnet then ip policy rules to treat it
as local
iptables -t mangle -A PREROUTING -s 0/0 -d 1.2.3.4/24 -j MARK --set-mark 1
ip rule add prio 100 fwmark 1 table 100
ip route add local 0/0 dev lo table 100
This will treat subnet 1.2.3.4/24 as local. I use this to tag a subnet for IPVS-NATing
-Matt
> At 07:41 11/02/2003 -0500, Matthew S. Crocker wrote:
> >On Tue, 11 Feb 2003, Luis Miguel Cruz Miranda wrote:
> >
> > > Is there any way to create ethernet sub interfaces?
> > >
> >
> >Do you mean IP aliases on the same ethernet or VLANs?
> >
> >You can configure multiple IPs on the same Ethernet interface with the
> >command 'ip address add <IP ADDRESS> dev <device>' 'ip address help'
> >will give you more info
> >
> >The kernel also supports 802.1q VLANs which allows you to create new
> >interfaces and assign IPs to those interfaces.
> >
> >http://www.candelatech.com/~greear/vlan.html for more info
> >
> >-Matt
> >
> >
> > >
> > > Luis Miguel Cruz Miranda. | B2B INTEGRAL, S.A.
> > > CCNA - Systems Administrator | Pol. Ind. de Asipo
> > > | C/A - Parcela 86-C
> > > Tel: +34 902 506 605 | 33.428 - CAYES - LLANERA
> > > Fax:+34 985 980 794 | ASTURIAS (ESPAÑA/SPAIN)
> > >
> > >
> > > _______________________________________________
> > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > >
> >
> >--
> >----------------------------------------------------------------------
> >Matthew S. Crocker
> >Vice President / Internet Division Email: matthew@crocker.com
> >Crocker Communications Phone: (413) 746-2760
> >PO BOX 710 Fax: (413) 746-3704
> >Greenfield, MA 01302-0710 http://www.crocker.com
> >----------------------------------------------------------------------
> >
> >_______________________________________________
> >LARTC mailing list / LARTC@mailman.ds9a.nl
> >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> Luis Miguel Cruz Miranda. | B2B INTEGRAL, S.A.
> CCNA - Systems Administrator | Pol. Ind. de Asipo
> | C/A - Parcela 86-C
> Tel: +34 902 506 605 | 33.428 - CAYES - LLANERA
> Fax:+34 985 980 794 | ASTURIAS (ESPAÑA/SPAIN)
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Matthew S. Crocker
Crocker Communications, Inc. / Vice President
PO BOX 710
Greenfield, MA 01302-0710
Voice: 413-746-2760
Fax: 413-746-3704
Web: http://www.crocker.com
E-mail: matthew@crocker.com
GPG Public Key: www.keyserver.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-02-11 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-11 12:31 [LARTC] ethernet sub-interfaces?? Luis Miguel Cruz Miranda
2003-02-11 12:41 ` Matthew S. Crocker
2003-02-11 13:57 ` Luis Miguel Cruz Miranda
2003-02-11 14:26 ` Bartek Krajnik
2003-02-11 14:32 ` Luis Miguel Cruz Miranda
2003-02-11 14:52 ` Matthew Crocker [this message]
2003-02-11 20:54 ` D. Stimits
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=marc-lartc-104497522330174@msgid-missing \
--to=matthew@crocker.com \
--cc=lartc@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.