ethernet sub-interfaces??
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 12 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 11 lines
---------------------------------------------------------------------- Matthew S. Crocker Vice President / Internet Division Email: [email protected] Crocker Communications Phone: (413) 746-2760 PO BOX 710 Fax: (413) 746-3704 Greenfield, MA 01302-0710 http://www.crocker.com ---------------------------------------------------------------------- _______________________________________________ LARTC mailing list / [email protected] 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.
Quoted 39 lines · Matthew S. Crocker
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 8 lines
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)Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--
----------------------------------------------------------------------
Matthew S. CrockerVice President / Internet Division Email: [email protected] Crocker Communications Phone: (413) 746-2760 PO BOX 710 Fax: (413) 746-3704 Greenfield, MA 01302-0710 http://www.crocker.com
Quoted 5 lines
----------------------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines · Luis Miguel Cruz Miranda
I know that but I am looking for another way if it is possible.
man ifconfig
probably You want eth0:0 eth0:1 ...
Quoted 57 lines
Quoted 39 lines · Matthew S. Crocker
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 8 lines
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)Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--
----------------------------------------------------------------------
Matthew S. CrockerVice President / Internet Division Email: [email protected] Crocker Communications Phone: (413) 746-2760 PO BOX 710 Fax: (413) 746-3704 Greenfield, MA 01302-0710 http://www.crocker.comQuoted 5 lines
----------------------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 9 lines
GPG-Key: http://www.bartek.bicom.pl/public_key.txt pub 1024D/948DE45D 2002-12-12 Bartek Krajnik <[email protected]> Primary key fingerprint: 95E9 8E2D 1801 7864 2244 6EAA 03E5 764D 948D E45D _______________________________________________ LARTC mailing list / [email protected] 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.
Quoted 69 lines · you
Quoted 2 lines · Luis Miguel Cruz Miranda
I know that but I am looking for another way if it is possible.
man ifconfig
probably You want eth0:0 eth0:1 ...Quoted 53 lines
Quoted 39 lines · Matthew S. Crocker
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 8 lines
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)Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--
----------------------------------------------------------------------
Matthew S. CrockerVice President / Internet Division Email: [email protected] Crocker Communications Phone: (413) 746-2760 PO BOX 710 Fax: (413) 746-3704 Greenfield, MA 01302-0710 http://www.crocker.comQuoted 5 lines
----------------------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
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)Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
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 <[email protected]> Primary key fingerprint: 95E9 8E2D 1801 7864 2244 6EAA 03E5 764D 948D
Quoted 6 lines
E45D
_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 56 lines
Quoted 39 lines · Matthew S. Crocker
Quoted 2 lines · Luis Miguel Cruz Miranda
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
Quoted 8 lines
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)Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--
----------------------------------------------------------------------
Matthew S. CrockerVice President / Internet Division Email: [email protected] Crocker Communications Phone: (413) 746-2760 PO BOX 710 Fax: (413) 746-3704 Greenfield, MA 01302-0710 http://www.crocker.comQuoted 5 lines
----------------------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 15 lines
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: [email protected] GPG Public Key: www.keyserver.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Luis Miguel Cruz Miranda
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.0.0.0
NETMASK%5.0.0.0
BROADCAST.255.255.255
D. Stimits
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/