Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Debian 4 et IP alias

1 réponse
Avatar
vic ros
--_f52f1cc4-0bf9-40d5-babe-36da795bc658_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Bonjour=2C

Dans le fichier /etc/network/interfaces j'ai les lignes uisvantes:
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Apres le boot eth0 a =E9t=E9 renomm=E9 en eth3:
debian4:~# ifconfig -a
eth3 Link encap:Ethernet HWaddr 08:00:27:1A:19:0F
inet addr:192.168.1.86 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:3804 errors:11 dropped:0 overruns:0 frame:0
TX packets:988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:481364 (470.0 KiB) TX bytes:135277 (132.1 KiB)
Interrupt:11 Base address:0xd020

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:199 errors:0 dropped:0 overruns:0 frame:0
TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40410 (39.4 KiB) TX bytes:40410 (39.4 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

debian4:~#

Je souhaite ajouter une IP alias =E0 cette interface=2C je fais manuellemen=
t la commande:
debian4:~# ip addr add 192.168.1.203 dev eth3

debian4:~# ping 192.168.1.203
PING 192.168.1.203 (192.168.1.203) 56(84) bytes of data.
64 bytes from 192.168.1.203: icmp_seq=3D1 ttl=3D64 time=3D3.33 ms
64 bytes from 192.168.1.203: icmp_seq=3D2 ttl=3D64 time=3D0.046 ms
64 bytes from 192.168.1.203: icmp_seq=3D3 ttl=3D64 time=3D0.042 ms

--- 192.168.1.203 ping statistics ---
3 packets transmitted=2C 3 received=2C 0% packet loss=2C time 2003ms
rtt min/avg/max/mdev =3D 0.042/1.142/3.339/1.553 ms

debian4:~# ifconfig eth3:0
eth3:0 Link encap:Ethernet HWaddr 08:00:27:1A:19:0F
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
Interrupt:11 Base address:0xd020

debian4:~#

Je souhaite que IP alias se fasse au boot=2C j'ai donc rajout=E9 les lignes=
suivantes dans /etc/network/interfaces:
auto eth3:0
iface eth3:0 inet static
address 192.168.1.203

Et apres le boot=2C le ping sur l'IP alias (192.168.1.203) ne repond pas.

Quelqu'un a une id=E9e?

Merci.



=20
_________________________________________________________________
Vivez No=EBl avant l'heure avec Hotmail Magic Moment !
http://www.hotmailmagicmoment.com=

--_f52f1cc4-0bf9-40d5-babe-36da795bc658_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
--></style>
</head>
<body class=3D'hmmessage'>
Bonjour=2C<br><br>Dans le fichier /etc/network/interfaces j'ai les lignes u=
isvantes:<br>auto lo<br>iface lo inet loopback<br># The primary network int=
erface<br>allow-hotplug eth0<br>iface eth0 inet dhcp<br><br>Apres le boot e=
th0 a =E9t=E9 renomm=E9 en eth3:<br>debian4:~# ifconfig -a<br>eth3&nbsp=3B&=
nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Link encap:Ethernet&nbsp=3B HWaddr 08:00:27=
:1A:19:0F<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B inet addr:192.168.1.86&nbsp=3B Bcast:255.255.255.255&nbsp=3B Ma=
sk:255.255.255.0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B UP BROADCAST RUNNING MULTICAST&nbsp=3B MTU:576&nbsp=3B =
Metric:1<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B RX packets:3804 errors:11 dropped:0 overruns:0 frame:0<br>&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B TX pack=
ets:988 errors:0 dropped:0 overruns:0 carrier:0<br>&nbsp=3B&nbsp=3B&nbsp=3B=
&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B collisions:0 txqueuelen:10=
00<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B RX bytes:481364 (470.0 KiB)&nbsp=3B TX bytes:135277 (132.1 KiB)<br>&nbs=
p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Interr=
upt:11 Base address:0xd020<br><br>lo&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B Link encap:Local Loopback<br>&nbsp=3B&nbsp=3B&nbsp=3B&n=
bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B inet addr:127.0.0.1&nbsp=3B =
Mask:255.0.0.0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&=
nbsp=3B&nbsp=3B inet6 addr: ::1/128 Scope:Host<br>&nbsp=3B&nbsp=3B&nbsp=3B&=
nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B UP LOOPBACK RUNNING&nbsp=3B=
MTU:16436&nbsp=3B Metric:1<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B&nbsp=3B&nbsp=3B RX packets:199 errors:0 dropped:0 overruns:0 f=
rame:0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&=
nbsp=3B TX packets:199 errors:0 dropped:0 overruns:0 carrier:0<br>&nbsp=3B&=
nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B collisions:=
0 txqueuelen:0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&=
nbsp=3B&nbsp=3B RX bytes:40410 (39.4 KiB)&nbsp=3B TX bytes:40410 (39.4 KiB)=
<br><br>sit0&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Link encap:IPv6-in-IPv=
4<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B NOARP&nbsp=3B MTU:1480&nbsp=3B Metric:1<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B RX packets:0 errors:0 dropped:=
0 overruns:0 frame:0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb=
sp=3B&nbsp=3B&nbsp=3B TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<=
br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B=
collisions:0 txqueuelen:0<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B RX bytes:0 (0.0 b)&nbsp=3B TX bytes:0 (0.0 b)<b=
r><br>debian4:~#<br><br>Je souhaite ajouter une IP alias =E0 cette interfac=
e=2C je fais manuellement la commande:<br>debian4:~# ip addr add 192.168.1.=
203 dev eth3<br><br>debian4:~# ping 192.168.1.203<br>PING 192.168.1.203 (19=
2.168.1.203) 56(84) bytes of data.<br>64 bytes from 192.168.1.203: icmp_seq=
=3D1 ttl=3D64 time=3D3.33 ms<br>64 bytes from 192.168.1.203: icmp_seq=3D2 t=
tl=3D64 time=3D0.046 ms<br>64 bytes from 192.168.1.203: icmp_seq=3D3 ttl=3D=
64 time=3D0.042 ms<br><br>--- 192.168.1.203 ping statistics ---<br>3 packet=
s transmitted=2C 3 received=2C 0% packet loss=2C time 2003ms<br>rtt min/avg=
/max/mdev =3D 0.042/1.142/3.339/1.553 ms<br><br>debian4:~# ifconfig eth3:0<=
br>eth3:0&nbsp=3B&nbsp=3B&nbsp=3B Link encap:Ethernet&nbsp=3B HWaddr 08:00:=
27:1A:19:0F<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B UP BROADCAST RUNNING MULTICAST&nbsp=3B MTU:576&nbsp=3B Metric:=
1<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B Interrupt:11 Base address:0xd020<br><br>debian4:~#<br><br>Je souhaite q=
ue IP alias se fasse au boot=2C j'ai donc rajout=E9 les lignes suivantes da=
ns /etc/network/interfaces:<br>auto eth3:0<br>iface eth3:0 inet static<br>a=
ddress 192.168.1.203<br><br>Et apres le boot=2C le ping sur l'IP alias (192=
.168.1.203) ne repond pas.<br><br>Quelqu'un a une id=E9e?<br><br>Merci.<br>=
<br><br><br> <br /><hr />Gagnez au cadeau par jour avec Hotmail =
Magic Moment ! <a href=3D'http://www.hotmailmagicmoment.com' target=3D'_new=
'>Cliquez ici !</a></body>
</html>=

--_f52f1cc4-0bf9-40d5-babe-36da795bc658_--

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org

1 réponse

Avatar
Daniel Huhardeaux
vic ros a écrit :
Bonjour,


Bonsoir
[...]
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

[...]
auto eth3:0
iface eth3:0 inet static
address 192.168.1.203


Il y a une erreur, cela doit etre eth0:0

L'interface eth0 n'est pas encore up a cause du dhcp, le systeme ne peut
lui attribuer d'alias. La solution est de mettre une temporisation dans
un script pre-up sur eth0:0 (commencer par un sleep 10 puis baisser la
valeur si le demarrage est trop long)

--
Daniel

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists Vous pouvez aussi ajouter le mot
``spam'' dans vos champs "From" et "Reply-To:"

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS