admin:tpvlan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
admin:tpvlan [2020/02/13 11:12] – 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 opeth : | + | **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 : | + | **Configuration de immortal** : |
<code bash> | <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 > / | ||
</ | </ | ||
- | Configuration du switch s1 : | + | Version moderne de vconfig : |
+ | |||
+ | < | ||
+ | ip link add link eth0 name eth0.100 type vlan id 100 | ||
+ | </ | ||
+ | |||
+ | **Configuration du switch s1** : | ||
<code bash> | <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.1581592364.txt.gz · Last modified: 2024/03/18 15:04 (external edit)