informatique_vlan
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
informatique_vlan [2007/09/25 21:44] – créée thierry | informatique_vlan [2011/09/30 21:39] (Version actuelle) – thierry | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== VLAN ====== | ====== VLAN ====== | ||
+ | |||
+ | |||
+ | |||
+ | |||
===== Liens ===== | ===== Liens ===== | ||
+ | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | ==== Creer VLAN ==== | ||
+ | Sur interface '' | ||
# ifconfig eth1 0.0.0.0 up | # ifconfig eth1 0.0.0.0 up | ||
# vconfig add eth1 < | # vconfig add eth1 < | ||
Ligne 14: | Ligne 23: | ||
# tcpdump -i eth1 vlan < | # tcpdump -i eth1 vlan < | ||
+ | ==== Mettre une IP ==== | ||
+ | |||
+ | # ifconfig eth1.NUMERO_VLAN 192.168.1.2 netmask 255.255.255.0 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== corriger ARP ==== | ||
+ | Sur un autre poste, on peut constater que plusieurs interfaces repondent aux requetes ARP... pas bien pour nos tests: | ||
+ | |||
+ | # arping 192.168.1.2 | ||
+ | ARPING 192.168.1.2 | ||
+ | 60 bytes from 00: | ||
+ | 60 bytes from 00: | ||
+ | 60 bytes from 00: | ||
+ | 60 bytes from 00: | ||
+ | Sur la machine ' | ||
+ | # echo " | ||
+ | Ou dans: ''/ | ||
+ | ... | ||
+ | net.ipv4.conf.all.arp_ignore = 1 | ||
+ | |||
+ | | :!: ca serait pas plutot: **'' | ||
+ | |||
+ | Et puis, pour appliquer les changements immediatements: | ||
+ | # sysctl -p | ||
+ | |||
+ | ==== Classe d'IP ==== | ||
+ | Dans ''/ | ||
+ | #auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 10.18.5.66 | ||
+ | netmask 255.255.255.192 | ||
+ | Et puis: | ||
+ | route add -net 10.18.5.0 netmask 255.255.255.0 gw 10.18.5.65 | ||
+ | | ||
+ | ===== Tips ===== | ||
+ | |||
+ | ==== tcpdump ==== | ||
+ | |||
+ | Afficher le VLAN sur un port en 8021q: | ||
+ | |||
+ | # tcpdump -e -n -i < | ||
+ | ... | ||
+ | ..., ethertype 802.1Q (0x8100), length 68: vlan 123,... | ||
+ | ... |
informatique_vlan.1190756691.txt.gz · Dernière modification : 2007/09/25 21:44 de thierry