[LARTC] ethernet sub-interfaces??

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux