Discussion:
About two eth alias in single ethernet !!!
Lic. Néstor Rodríguez-Triana Domínguez
2013-02-01 03:17:40 UTC
Permalink
Hello everybody:

Enybody can tellme how to setup al eth alias (like eth0:0) in a debian
box with a sigle ethernet?

Thanks


--

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/
Markus Hirschmann
2013-01-31 20:08:20 UTC
Permalink
Hi,

ifconfig eth0:1 up brings it up, so use a

auto eth0:1
iface eth0:1 inet static
address ...

in /etc/network/interfaces

Hope it works, I did not use that for a long time.

Regards,

Markus
Post by Lic. Néstor Rodríguez-Triana Domínguez
Enybody can tellme how to setup al eth alias (like eth0:0) in a debian
box with a sigle ethernet?
Thanks
--
Este mensaje le ha llegado mediante el servicio de correo electronico
que ofrece Infomed para respaldar el cumplimiento de las misiones del
Sistema Nacional de Salud. La persona que envia este correo asume el
compromiso de usar el servicio a tales fines y cumplir con las
regulaciones establecidas
Infomed: http://www.sld.cu/
--
Markus Hirschmann, Dipl.-Inf. Univ.
Veitshöchheimer Straße 1, 97080 Würzburg
Tel: +49 931 8092864 Mobil: +49 179 5408429
***@durtro.de Steuernummer 257/229/10802
--
To UNSUBSCRIBE, email to debian-firewall-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@durtro.de
Björn Mattsson
2013-01-31 20:17:57 UTC
Permalink
Post by Lic. Néstor Rodríguez-Triana Domínguez
Enybody can tellme how to setup al eth alias (like eth0:0) in a
debian box with a sigle ethernet?
One way doing it if you are looking for mutiple ipnumbers on eth0


cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

iface eth0 inet static
address xx.xx.xx.11
netmask 255.255.255.0
network xx.xx.xx.0
broadcast xx.xx.xx.255
post-up /etc/firewall/eth0_route_up
pre-down /etc/firewall/eth0_route_down
gateway xx.xx.xx.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers xx.xx.yy.11
dns-search xxx.se

cat /etc/firewall/eth0_route_up
#!/bin/bash
ip a add xx.xx.xx.12/24 dev eth0
ip a add xx.xx.xx.13/24 dev eth0


cat /etc/firewall/eth0_route_down
#!/bin/bash
ip a del xx.xx.xx.12/24 dev eth0
ip a del xx.xx.xx.13/24 dev eth0


// Björn M.
--
To UNSUBSCRIBE, email to debian-firewall-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@bjorn-helena.se
Loading...