Is there any way to create ethernet sub interfaces? 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/
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/
I know that but I am looking for another way if it is possible. 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/
On Tue, Feb 11, 2003 at 02:57:38PM +0100, Luis Miguel Cruz Miranda wrote:> I know that but I am looking for another way if it is possible. >man ifconfig probably You want eth0:0 eth0:1 ...> 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/ >-- GPG-Key: http://www.bartek.bicom.pl/public_key.txt pub 1024D/948DE45D 2002-12-12 Bartek Krajnik <bartek@bicom.pl> Primary key fingerprint: 95E9 8E2D 1801 7864 2244 6EAA 03E5 764D 948D E45D _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
No I don''t want ip aliases since I can''t use it as devices into my netfilter-firewall script. At 15:26 11/02/2003 +0100, you wrote:>On Tue, Feb 11, 2003 at 02:57:38PM +0100, Luis Miguel Cruz Miranda wrote: > > I know that but I am looking for another way if it is possible. > > >man ifconfig >probably You want eth0:0 eth0:1 ... > > > 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/ > > > >-- >GPG-Key: > http://www.bartek.bicom.pl/public_key.txt > pub 1024D/948DE45D 2002-12-12 Bartek Krajnik <bartek@bicom.pl> > Primary key fingerprint: 95E9 8E2D 1801 7864 2244 6EAA 03E5 764D 948D > E45D > > >_______________________________________________ >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/
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/
Luis Miguel Cruz Miranda wrote: > No I don''t want ip aliases since I can''t use it as devices into my > netfilter-firewall script. > Perhaps you mean something like eth0:0, eth0:1, eth0:2, where each eth0 is the same hardware devies, and :0, :1, and :2 are different IP/Mask/Networks? If you are in Redhat, ~ version 7.3+, you can go to /etc/sysconfig/network-scripts/, and find a file named ifcfg-eth0 for the first hardware device, ifcfg-eth1 for the 2nd device, so on. To add a second IP/Mask/Network to eth0, you can create this file: ifcfg-eth0:1. The contents of that file can be similar to: DEVICE=eth0:1 ONBOOT=yes BOOTPROTO=static IPADDR=10.0.0.0 NETMASK=255.0.0.0 BROADCAST=10.255.255.255 D. Stimits _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi, I was not able to install ingress qdisc as below tc qdisc add dev eth0 handle ffff: ingress also tried tc qdisc add dev eth0 ingress Both cases it says invalid argument. What could be the problem ? Andreas --------------------------------- With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
On Thursday 13 February 2003 11:20, Andreas Wright wrote:> Hi, > > I was not able to install ingress qdisc as below > > tc qdisc add dev eth0 handle ffff: ingress > > also tried tc qdisc add dev eth0 ingress > > Both cases it says invalid argument. > > What could be the problem ?Have you ingress support in the kernel? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/