admin:tpvlan
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| admin:tpvlan [2020/02/13 11:11] – created orel | admin:tpvlan [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| - | Configuration de syl : | + | ==== Première Partie ===== |
| + | |||
| + | **Configuration de syl (vlan 100)** | ||
| <code bash> | <code bash> | ||
| + | ifconfig eth0 192.168.100.2/ | ||
| + | route add default gw 192.168.100.1 | ||
| </ | </ | ||
| - | Configuration de syl : | + | **Configuration de opeth (vlan 200)** |
| <code bash> | <code bash> | ||
| + | ifconfig eth0 192.168.200.2/ | ||
| + | route add default gw 192.168.200.1 | ||
| </ | </ | ||
| + | **Configuration de immortal** : | ||
| + | <code bash> | ||
| + | # vlan 100 & 200 | ||
| + | ifconfig eth0 up | ||
| + | vconfig add eth0 100 | ||
| + | vconfig add eth0 200 | ||
| + | ifconfig eth0.100 192.168.100.1/ | ||
| + | ifconfig eth0.200 192.168.200.1/ | ||
| + | echo 1 > / | ||
| + | </ | ||
| + | |||
| + | Version moderne de vconfig : | ||
| + | |||
| + | < | ||
| + | ip link add link eth0 name eth0.100 type vlan id 100 | ||
| + | </ | ||
| + | |||
| + | **Configuration du switch s1** : | ||
| + | |||
| + | <code bash> | ||
| + | vlan/create 100 | ||
| + | vlan/create 200 | ||
| + | port/ | ||
| + | port/ | ||
| + | vlan/ | ||
| + | vlan/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | **Nota Bene** : Pour tester le bon fonctionnement, | ||
| + | |||
| + | |||
| + | ==== Deuxième Partie : Trunking ===== | ||
| + | |||
| + | **Configuration de nile (vlan 100)** : | ||
| + | |||
| + | <code bash> | ||
| + | ifconfig eth0 192.168.100.3/ | ||
| + | route add default gw 192.168.100.1 | ||
| + | </ | ||
| + | |||
| + | **Configuration de grave (vlan 200)** : | ||
| + | |||
| + | <code bash> | ||
| + | ifconfig eth0 192.168.200.3/ | ||
| + | route add default gw 192.168.200.1 | ||
| + | </ | ||
| + | |||
| + | |||
| + | **Configuration du switch s1** : | ||
| + | |||
| + | <code bash> | ||
| + | # ... | ||
| + | vlan/ | ||
| + | vlan/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | **Configuration du switch s2** : | ||
| + | |||
| + | <code bash> | ||
| + | vlan/create 100 | ||
| + | vlan/create 200 | ||
| + | port/ | ||
| + | port/ | ||
| + | vlan/ | ||
| + | vlan/ | ||
| + | </ | ||
admin/tpvlan.1581592314.txt.gz · Last modified: 2024/03/18 15:04 (external edit)
