Notation CIDR
This commit is contained in:
parent
5b358c8022
commit
7b54834e72
|
@ -33,15 +33,10 @@ Suppression d'une adresse d'une interface :
|
|||
Configuration automatique :
|
||||
|
||||
~~~
|
||||
# echo "inet 192.0.32.10 255.255.255.0" > /etc/hostname.vr0
|
||||
# echo "inet 192.0.32.10/24" > /etc/hostname.vr0
|
||||
# echo "inet6 2a01:4:3:2::1 64" >> /etc/hostname.vr0
|
||||
~~~
|
||||
|
||||
Attention il ne s'agit pas de la même syntaxe qu'ifconfig, on ne met
|
||||
pas le mot clé netmask, sinon la configuration ne sera pas chargée
|
||||
(Voir `man hostname.if`). À noter qu'on peut aussi utiliser une
|
||||
notation CIDR.
|
||||
|
||||
Démarrer une interface par son fichier de configuration :
|
||||
|
||||
~~~
|
||||
|
@ -53,13 +48,13 @@ Démarrer une interface par son fichier de configuration :
|
|||
Ajouter un alias :
|
||||
|
||||
~~~
|
||||
# ifconfig vr0 inet alias 192.0.32.11 netmask 255.255.255.0
|
||||
# ifconfig vr0 inet alias 192.0.32.11/24
|
||||
~~~
|
||||
|
||||
Supprimer un alias :
|
||||
|
||||
~~~
|
||||
# ifconfig vr0 192.0.32.11 delete
|
||||
# ifconfig vr0 192.0.32.11/24 delete
|
||||
~~~
|
||||
|
||||
# DHCP
|
||||
|
|
Loading…
Reference in a new issue