Anda di halaman 1dari 4

Konfigurasi vlan dan routing

#SWITCH en configure terminal vlan name vlan name vlan name vlan name vlan name vlan name vlan name vlan name 9 sembilan 10 sepuluh 11 sebelas 12 duabelas 13 tigabelas 14 empatbelas 15 limabelas 16 enambelas 0/1 9 0/2 9 0/3 9 0/4 10 0/5 10 0/6 10 0/7 11 0/8 11 0/9 11 0/10 12

interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan interface fastethernet switchport mode access switchport access vlan

interface fastethernet 0/11 switchport mode access switchport access vlan 12 interface fastethernet 0/12 switchport mode access switchport access vlan 12 interface fastethernet 0/13 switchport mode access switchport access vlan 13 interface fastethernet 0/14 switchport mode access switchport access vlan 13 interface fastethernet 0/15 switchport mode access switchport access vlan 13 interface fastethernet 0/16 switchport mode access switchport access vlan 14 interface fastethernet 0/17 switchport mode access switchport access vlan 14 interface fastethernet 0/18 switchport mode access switchport access vlan 14 interface fastethernet 0/19 switchport mode access switchport access vlan 15 interface fastethernet 0/20 switchport mode access switchport access vlan 15 interface fastethernet 0/21 switchport mode access switchport access vlan 15 interface fastethernet 0/22 switchport mode access switchport access vlan 16 interface fastethernet 0/23 switchport mode access switchport access vlan 16 interface fastethernet 0/24 switchport mode access switchport access vlan 16 interface gigabitethernet 1/1 switchport mode trunk switchport trunk allowed vlan all

#ROUTER

en configure terminal interface fastethernet 0/0 no shutdown interface fastethernet 0/0.9 encapsulation dot1Q 9 ip address 170.2.0.1 255.255.255.128 interface fastethernet 0/0.10 encapsulation dot1Q 10 ip address 170.2.0.129 255.255.255.128 interface fastethernet 0/0.11 encapsulation dot1Q 11 ip address 170.2.1.1 255.255.255.192 interface fastethernet 0/0.12 encapsulation dot1Q 12 ip address 170.2.1.65 255.255.255.192 interface fastethernet 0/0.13 encapsulation dot1Q 13 ip address 170.2.1.129 255.255.255.224 interface fastethernet 0/0.14 encapsulation dot1Q 14 ip address 170.2.1.1661 255.255.255.224 interface fastethernet 0/0.15 encapsulation dot1Q 15 ip address 170.2.1.193 255.255.255.224 interface fastethernet 0/0.16 encapsulation dot1Q 16 ip address 170.2.1.225 255.255.255.240 interface fastethernet 0/1 ip address 170.3.0.1 255.255.255.252 no shutdown ip ip ip ip ip ip ip ip route route route route route route route route 170.1.0.0 255.255.255.128 170.1.0.128 255.255.255.128 170.3.0.2 170.1.1.0 255.255.255.192 170.3.0.2 170.1.1.64 255.255.255.192 170.3.0.2 170.1.1.128 255.255.255.224 170.3.0.2 170.1.1.160 255.255.255.224 170.3.0.2 170.1.1.192 255.255.255.224 170.3.0.2 170.1.1.224 255.255.255.240 170.3.0.2 1 1 1 1 1 1 1 1 1 1 2 2 2 2 permit 170.1.0.0 0.0.0.127 permit 170.1.1.0 0.0.0.63 permit 170.1.1.128 0.0.0.31 permit 170.1.1.192 0.0.0.31 permit 170.2.0.0 0.0.0.127 permit 170.2.1.0 0.0.0.63 permit 170.2.1.128 0.0.0.31 permit 170.2.1.192 0.0.0.31 permit 170.3.0.0 0.0.0.3 deny any permit 170.1.0.128 0.0.0.127 permit 170.1.1.64 0.0.0.63 permit 170.1.1.160 0.0.0.31 permit 170.1.1.224 0.0.0.15

access-list access-list access-list access-list access-list access-list access-list access-list access-list access-list access-list access-list access-list access-list

access-list access-list access-list access-list access-list access-list

2 2 2 2 2 2

permit 170.2.0.128 0.0.0.127 permit 170.2.1.64 0.0.0.63 permit 170.2.1.160 0.0.0.31 permit 170.2.1.224 0.0.0.15 permit 170.3.0.0 0.0.0.3 deny any 0/0.9 0/0.10 0/0.11 0/0.12 0/0.13 0/0.14 0/0.15 0/0.16

interface fastethernet ip access-group 1 out interface fastethernet ip access-group 2 out interface fastethernet ip access-group 1 out interface fastethernet ip access-group 2 out interface fastethernet ip access-group 1 out interface fastethernet ip access-group 2 out interface fastethernet ip access-group 1 out interface fastethernet ip access-group 2 out