KONFIGURASI VLAN + ROUTING STATIC DI H3C
Topologi:
disini saya menggunakan Multi Layer Switch(MLS) H3C 29850 Series, saya akan menggunakan penyebutan MLS-1 untuk S9850-1,dan juga MLS-2/3 pada masing-masing perangkat.
konfigurasi hostname dan point-to-point antar MLS pada masing-masing MLS
MLS-1:
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]hostname MLS-1
[MLS-1]interface HundredGigE 1/0/1 (interface ke arah MLS-2)
[MLS-1-HundredGigE1/0/1]ip address 192.168.100.2 255.255.255.252
[MLS-1-HundredGigE1/0/1]no shutdown
[MLS-1-HundredGigE1/0/1]quit
MLS-2:
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]hostname MLS-2
[MLS-2]interface HundredGigE 1/0/1 (interface ke arah MLS-1)
[MLS-2-HundredGigE1/0/1]ip address 192.168.100.1 255.255.255.252
[MLS-2-HundredGigE1/0/1]no shutdown
[MLS-2-HundredGigE1/0/1]quit
[MLS-2]interface HundredGigE 1/0/2 (interface ke arah MLS-3)
[MLS-2-HundredGigE1/0/2]ip address 192.168.200.1 255.255.255.252
[MLS-2-HundredGigE1/0/2]no shutdown
[MLS-2-HundredGigE1/0/2]quit
MLS-3:
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]hostname MLS-3
[MLS-3]interface HundredGigE 1/0/1 (interface ke arah MLS-2)
[MLS-3-HundredGigE1/0/1]ip address 192.168.200.2 255.255.255.252
[MLS-3-HundredGigE1/0/1]no shutdown
[MLS-3-HundredGigE1/0/1]quit
konfigurasi vlan database dan memberi ip address pada vlan di masing-masing perangkat
MLS-1:
[MLS-1]vlan 10
[MLS-1-vlan10]quit
[MLS-1]interface Vlan-interface 10
[MLS-1-Vlan-interface10]ip address 192.168.10.1 255.255.255.0
[MLS-1-Vlan-interface10]quit
MLS-2:
[MLS-2]vlan 20
[MLS-2-vlan20]quit
[MLS-2]interface Vlan-interface 20
[MLS-2-Vlan-interface20]ip address 192.168.20.1 255.255.255.0
[MLS-2-Vlan-interface20]quit
MLS-3:
[MLS-3]vlan 30
[MLS-3-vlan30]quit
[MLS-3]interface Vlan-interface 30
[MLS-3-Vlan-interface30]ip address 192.168.30.1 255.255.255.0
[MLS-3-Vlan-interface30]quit
Konfigurasi access vlan pada interface yang mengarah ke end-devices
MLS-1:
[MLS-1]interface HundredGigE 1/0/2
[MLS-1-HundredGigE1/0/2]port link-mode bridge
The configuration of the interface will be restored to the default. Continue? [Y/N]:
Before pressing ENTER you must choose 'YES' or 'NO'[Y/N]: Y
jika ada pertanyaan diatas, ketik "y" untuk YES, disini kita mengubah fungsional port tersebut menjadi L2 terlebih dahulu, karena MLS H3C secara default tersetting sebagai Layer 3
[MLS-1-HundredGigE1/0/2]port link-type access
[MLS-1-HundredGigE1/0/2]port access vlan 10
MLS-2:
[MLS-2]interface HundredGigE 1/0/3
[MLS-2-HundredGigE1/0/3]port link-mode bridge
The configuration of the interface will be restored to the default. Continue? [Y/N]:
Before pressing ENTER you must choose 'YES' or 'NO'[Y/N]:y
[MLS-2-HundredGigE1/0/3]port link-type access
[MLS-2-HundredGigE1/0/3]port access vlan 20
MLS-3:
[MLS-3]interface HundredGigE 1/0/2
[MLS-3-HundredGigE1/0/2]port link-mode bridge
The configuration of the interface will be restored to the default. Continue? [Y/N]:
Before pressing ENTER you must choose 'YES' or 'NO'[Y/N]:y
[MLS-3-HundredGigE1/0/2]port link-type access
[MLS-3-HundredGigE1/0/2]port access vlan 30
konfigurasi routing static pada masing-masing MLS
MLS-1:
[MLS-1-HundredGigE1/0/2]ip route-static 192.168.20.0 255.255.255.0 192.168.100.1 (Routing ke vlan 20)
[MLS-1]ip route-static 192.168.30.0 255.255.255.0 192.168.100.1 (Routing ke vlan 30)
[MLS-1]ip route-static 192.168.200.0 255.255.255.252 192.168.100.1 (Routing ke MLS-2 interface HundredGigE1/0/2)
MLS-2:
[MLS-2-HundredGigE1/0/3]ip route-static 192.168.10.0 255.255.255.0 192.168.100.2 (Routing ke vlan 10)
[MLS-2]ip route-static 192.168.30.0 255.255.255.0 192.168.200.2 (Routing ke vlan 30)
MLS-3:
[MLS-3-HundredGigE1/0/2]ip route-static 192.168.10.0 255.255.255.0 192.168.200.1 (Routing ke vlan 10)
[MLS-3]ip route-static 192.168.20.0 255.255.255.0 192.168.200.1 (Routing ke vlan 20)
[MLS-3]ip route-static 192.168.100.0 255.255.255.252 192.168.200.1 (Routing ke MLS-2 interface HundredGigE1/0/1)
pasang ip address pada tiap VPC mengikuti ip VLAN nya masing-masing
VPC-4:
VPC-4> ip 192.168.10.2 255.255.255.0 192.168.10.1
Checking for duplicate address...
VPC-4 : 192.168.10.2 255.255.255.0 gateway 192.168.10.1
VPC-5:
VPC-5> ip 192.168.20.2 255.255.255.0 192.168.20.1
Checking for duplicate address...
VPC-5 : 192.168.20.2 255.255.255.0 gateway 192.168.20.1
VPC-6:
VPC-6> ip 192.168.30.2 255.255.255.0 192.168.30.1
Checking for duplicate address...
VPC-6 : 192.168.30.2 255.255.255.0 gateway 192.168.30.1
Uji konektivitas antar vlan
VPC-4:
VPC-5: