Catatan Ujicoba Routing Menggunakan Cisco Packet Tracer-Akhir

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 49

Catatan Ujicoba Routing menggunakan cisco packet tracer Catatan 1: Routing static terhubung langsung (connection)

Laptop Continue with configuration dialog? [yes/no]: no Press RETURN to get started! Router>enable (* mengaktifkan router*) Router#configure terminal (* menu konfigurasi*) Router(config)#interface fastEthernet 0/0 (*menu configurasi Interface*) Router(config-if)#no shutdown (*Enable Interface*) Router(config-if)#ip address 192.168.10.254 255.255.255.0 (* config ip address*) Router(config-if)#exit (* keluar menu konfig interface*) Router(config)#exit (* keluar menu konfigurasi*) Router# Router#copy running-config startup-config (* copy configurasi ke start up config*) Destination filename [startup-config]? (* nama file default tekan enter*) Building configuration... [OK] Router#show interfaces fastEthernet 0/0 (* menampilkan interface *)

Mengaktifkan Telnet Router#configure terminal Router(config)#line vty 0 4 (*perintah menseting telnet- 4 user dalam suatu waktu*) Router(config-line)#password manager (* setting password telnet*) Router(config-line)#login (* Mengaktifkan password telnet*) Router(config-line)#exit (* keluar konfigurasi telnet*) Router(config)# Router(config)#enable password manager (* enable password pada router*) Router(config)#exit (* keluar menu konfigurasi*) Router#copy running-config startup-config (* copy configurasi ke start up config*) Destination filename [startup-config]? (* nama file default tekan enter*) Building configuration... [OK] PC0 (192.168.10.1) PC>telnet 192.168.10.254 Trying 192.168.10.254 ...Open User Access Verification Password: Router>enable Password: Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fastEthernet 0/1 Router(config-if)#ip address 192.168.11.254 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#ip route 192.168.11.0 255.255.255.0 fastEthernet 0/1 Router(config)#exit Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route Gateway of last resort is not set C 192.168.10.0/24 is directly connected, FastEthernet0/0 C 192.168.11.0/24 is directly connected, FastEthernet0/1 Router#copy Router#copy ru Router#copy running-config start Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#

Catatan 2: Routing static router Next Hop

Laptop (cable console) Ke Router 1


Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: elit1 The enable secret is a password used to protect access to

privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]:no Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0 Configuring interface FastEthernet0/0: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.10.254 Subnet mask for this interface [255.255.255.0] : 255.255.255.0 The following configuration command script was created: ! hostname elit1 enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 no shutdown ip address 192.168.10.254 255.255.255.0 ! interface FastEthernet0/1 shutdown no ip address ! end [0] Go to the IOS command prompt without saving this config.

[1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started! elit1>

Telnet dari PC0 (192.168.10.1) PC>telnet 192.168.10.254


Trying 192.168.10.254 ...Open User Access Verification Password: elit1>enable Password: manager elit1#config terminal Enter configuration commands, one per line. End with CNTL/Z. elit1(config)#interface FastEthernet 0/1 elit1(config-if)#no shutdown elit1(config-if)#ip address 192.168.11.254 255.255.255.0 elit1(config-if)#exit elit1(config)#exit elit1#show interfaces FastEthernet0/0 is up, line protocol is up (connected) Hardware is Lance, address is 0001.c7d1.8601 (bia 0001.c7d1.8601) Internet address is 192.168.10.254/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00, Last input 00:00:08, output 00:00:05, output hang never

Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: fifo Output queue :0/40 (size/max) 5 minute input rate 93 bits/sec, 0 packets/sec 5 minute output rate 85 bits/sec, 0 packets/sec 156 packets input, 6727 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 136 packets output, 5812 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out FastEthernet0/1 is up, line protocol is down (disabled) Hardware is Lance, address is 0001.c7d1.8602 (bia 0001.c7d1.8602) Internet address is 192.168.11.254/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00, Last input 00:00:08, output 00:00:05, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: fifo Output queue :0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Vlan1 is administratively down, line protocol is down Hardware is CPU Interface, address is 0000.0c72.1770 (bia 0000.0c72.1770) MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 elit1#config terminal Enter configuration commands, one per line. End with CNTL/Z. elit1(config)#ip route 192.168.12.0 255.255.255.0 192.168.11.1 elit1(config)#exit elit1#copy running-config startup-config Destination filename [startup-config]? Enter Building configuration... [OK]

Laptop (cable console) Ke Router2


Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: elit2 The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]: Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: fastEthernet0/1 Configuring interface FastEthernet0/1: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.12.254 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname elit2

enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 shutdown no ip address ! interface FastEthernet0/1 no shutdown ip address 192.168.12.254 255.255.255.0 ! end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started!

elit2>

Telnet dari PC3 Ke Router2


PC>telnet 192.168.12.254 Trying 192.168.12.254 ...Open User Access Verification Password: manager elit2>enable Password: manager elit2#configur terminal Enter configuration commands, one per line. End with CNTL/Z. elit2(config)#interface FastEthernet 0/0 elit2(config-if)#ip address 192.168.11.1 255.255.255.0 elit2(config-if)#no shutdown elit2(config-if)#exit elit2(config)#exit elit2#config terminal Enter configuration commands, one per line. End with CNTL/Z. elit2(config)#ip route 192.168.10.0 255.255.255.0 192.168.11.254 elit2(config)#exit elit2#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set S C C 192.168.10.0/24 [1/0] via 192.168.11.254 192.168.11.0/24 is directly connected, FastEthernet0/0 192.168.12.0/24 is directly connected, FastEthernet0/1

Routing Default

Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: elit2 The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]:No Current interface summary Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 FastEthernet0/1 FastEthernet0/0/0 FastEthernet0/0/1 FastEthernet0/0/2

unassigned unassigned unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down YES manual administratively down down YES manual administratively down down YES manual administratively down down

FastEthernet0/0/3 unassigned YES manual administratively down down Vlan1 unassigned YES manual administratively down down Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0/0 Configuring interface FastEthernet0/0/0: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.12.254 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname elit2 enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 shutdown no ip address ! interface FastEthernet0/1 shutdown no ip address ! interface FastEthernet0/0/0 no shutdown ip address 192.168.12.254 255.255.255.0 ! interface FastEthernet0/0/1 shutdown no ip address ! interface FastEthernet0/0/2 shutdown no ip address ! interface FastEthernet0/0/3 shutdown no ip address ! end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration...

%LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0/1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0/2, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0/3, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/0/1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/0/2, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/0/3, changed state to administratively down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started! elit2>

Dynamic Routing RIP


Router elektro (configurasi IP)

Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity

for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: eektro The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]: Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0 Configuring interface FastEthernet0/0: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.1.254 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname eektro enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 no shutdown

ip address 192.168.1.254 255.255.255.0 ! interface FastEthernet0/1 shutdown no ip address ! end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started!

eektro>enable Password: eektro#ho eektro#hos eektro#confi eektro#configure ter eektro#configure terminal Enter configuration commands, one per line. End with CNTL/Z. eektro(config)#ho eektro(config)#hostname elektro elektro(config)#inter elektro(config)#interface Fa elektro(config)#interface FastEthernet 0/1 elektro(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up elektro(config-if)#ip ad elektro(config-if)#ip address 192.168.2.1 255.255.255.0 elektro(config-if)#exit

elektro(config)#exit elektro# %SYS-5-CONFIG_I: Configured from console by console elektro#copy ru elektro#copy running-config sta elektro#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] elektro#show sta elektro#show startup-config Using 570 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption hostname elektro enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager elektro#

Router Headoffice
Press RETURN to get started. (Configure telnet) Router>enable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#line ft Router(config)#line vt Router(config)#line vty 0 4 Router(config-line)#passwo Router(config-line)#password manager Router(config-line)#login Router(config-line)#exit Router(config)#enable password manager (configure NIC0) Router(config)#interface ethernet Router(config)#interface ethernet 0/0/0 Router(config-if)#no shut down %LINK-5-CHANGED: Interface Ethernet0/0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0/0, changed state to up Router(config-if)#no shutdown Router(config-if)#ip address 192.168.2.1 255.255.255.0 Router(config-if)#exit (configure NIC1) Router(config)#interface fastEthernet 0/0

Router(config-if)#no shu Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)#ip address 192.168.5.1 255.255.255.0 Router(config-if)#exit (configure NIC2) Router(config)#interface fastEthernet 0/1 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up Router(config-if)#ip address 192.168.3.2 255.255.255.0 Router(config-if)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#confi Router#configure terrminal ^ % Invalid input detected at '^' marker. Router#configur terrminal ^ % Invalid input detected at '^' marker. (configure hostname) Router#enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname headoffice headoffice(config)#exit %SYS-5-CONFIG_I: Configured from console by console headoffice#co headoffice#cop headoffice#copy ru headoffice#copy running-config sta headoffice#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] headoffice#

Router SAINS
(configure NIC0) Configure SNMP Network Management? [no]: Current interface summary Interface FastEthernet0/0 IP-Address OK? Method Status Protocol

unassigned

YES manual administratively down down

FastEthernet0/1 Vlan1

unassigned unassigned

YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: FastEthernet 0/1 Invalid interface Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/1 Configuring interface FastEthernet0/1: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.3.1 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname sains enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 shutdown no ip address ! interface FastEthernet0/1 no shutdown ip address 192.168.3.1 255.255.255.0 ! end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started! (configure NIC1) sains(config)#interface fastEthernet 0/0 sains(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up sains(config-if)#ip address 192.168.10.254 255.255.255.0 sains(config-if)#exit sains(config)#exit %SYS-5-CONFIG_I: Configured from console by console sains#copy running-config sta sains#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] sains#copy running-config startup-config

Router DataInfo
Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: datainfo The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager

The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]: Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Ethernet0/0/0 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: FastEthernet 0/0 Invalid interface Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0 Configuring interface FastEthernet0/0: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.5.2 Subnet mask for this interface [255.255.255.0] : 255.255.255.0 The following configuration command script was created: ! hostname datainfo enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 no shutdown ip address 192.168.5.2 255.255.255.0 ! interface FastEthernet0/1 shutdown no ip address ! interface Ethernet0/0/0 shutdown no ip address ! end

[0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Ethernet0/0/0, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %LINK-5-CHANGED: Interface Ethernet0/0/0, changed state to administratively down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started!

datainfo>enable Password: datainfo#confi datainfo#configure ter datainfo#configure terminal Enter configuration commands, one per line. End with CNTL/Z. datainfo(config)#interface FastEthernet 0/1 datainfo(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up datainfo(config-if)#ip ad datainfo(config-if)#ip address 192.168.6.1 255.255.255.0 datainfo(config-if)#exit datainfo(config)#interface ethernet 0/0/0 datainfo(config-if)#no shutdown datainfo(config-if)# %LINK-5-CHANGED: Interface Ethernet0/0/0, changed state to up datainfo(config-if)#ip address 192.168.7.1 255.255.255.0 datainfo(config-if)#exit datainfo(config)#exit datainfo#

%SYS-5-CONFIG_I: Configured from console by console datainfo#copy ru datainfo#copy running-config sta datainfo#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] datainfo# datainfo#

Router Otomotif
Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters: Enter host name [Router]: otomotif The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]: Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: % No defaulting allowed

Enter interface name used to connect to the management network from the above interface summary: Fastethernet 0/0 Invalid interface Enter interface name used to connect to the management network from the above interface summary: FastEthernet0/0 Configuring interface FastEthernet0/0: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.8.254 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname otomotif enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 no shutdown ip address 192.168.8.254 255.255.255.0 ! interface FastEthernet0/1 shutdown no ip address ! end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started!

otomotif>enable Password: otomotif#con otomotif#confi otomotif#configure ter otomotif#configure terminal Enter configuration commands, one per line. End with CNTL/Z. otomotif(config)#inter otomotif(config)#interface Fa otomotif(config)#interface FastEthernet 0/1 otomotif(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up otomotif(config-if)#ip ad otomotif(config-if)#ip address 192.168.7.2 255.255.255.0 otomotif(config-if)#exit otomotif(config)#exit %SYS-5-CONFIG_I: Configured from console by console otomotif#copy otomotif#copy ru otomotif#copy running-config sta otomotif#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] otomotif#

Router PU
Continue with configuration dialog? [yes/no]: yes At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: yes Configuring global parameters:

Enter host name [Router]: PU The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: password The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: manager The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: manager Configure SNMP Network Management? [no]:no Current interface summary Interface FastEthernet0/0 FastEthernet0/1 Vlan1 IP-Address OK? Method Status Protocol

unassigned unassigned unassigned

YES manual administratively down down YES manual administratively down down

YES manual administratively down down

Enter interface name used to connect to the management network from the above interface summary: fastEthernet0/1 Configuring interface FastEthernet0/1: Configure IP on this interface? [yes]: yes IP address for this interface: 192.168.9.254 Subnet mask for this interface [255.255.255.0] : The following configuration command script was created: ! hostname PU enable secret 5 $1$mERr$GvDaTJK9lhdXRUPWKA74O0 enable password manager line vty 0 4 password manager ! interface Vlan1 shutdown no ip address ! interface FastEthernet0/0 shutdown no ip address ! interface FastEthernet0/1 no shutdown ip address 192.168.9.254 255.255.255.0 !

end [0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down %SYS-5-CONFIG_I: Configured from console by console [OK] Use the enabled mode 'configure' command to modify this configuration. Press RETURN to get started! PU>enable Password: PU#confi PU#configure ter PU#configure terminal Enter configuration commands, one per line. End with CNTL/Z. PU(config)#in PU(config)#interface fa PU(config)#interface fastEthernet 0/0 PU(config-if)#no shu PU(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up PU(config-if)#ip ad PU(config-if)#ip address 192.168.6.2 255.255.255.0 PU(config-if)#exit PU(config)#exit %SYS-5-CONFIG_I: Configured from console by console PU#co PU#cop PU#copy ru PU#copy running-config sta PU#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] PU#

Konfigurasi routing rip Elektro elektro(config)#router rip elektro(config-router)#network 192.168.1.0 elektro(config-router)#network 192.168.2.0 elektro(config-router)#exit elektro(config)#exit

Routing Protokol EIGRP

Konfigurasi Router R1
Router R1 (interface Configuration) interface FastEthernet0/0 ip address 192.168.10.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.12.1 255.255.255.0 duplex auto speed auto ! interface Ethernet0/0/0 ip address 192.168.1.254 255.255.255.0 duplex auto speed auto Router R1 ( konfigure Protokol EIGRP) router eigrp 1 network 192.168.1.0 network 192.168.10.0 network 192.168.12.0

Konfigurasi Router R2
Router R2 (interface Configuration) interface FastEthernet0/0 ip address 192.168.10.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.11.2 255.255.255.0 duplex auto speed auto ! interface Ethernet0/0/0 ip address 192.168.8.254 255.255.255.0 duplex auto speed auto Router R2 ( konfigure Protokol EIGRP) router eigrp 1 network 192.168.10.0 network 192.168.8.0 network 192.168.11.0

Konfigurasi Router R3
Router R3 (interface Configuration) interface FastEthernet0/0 ip address 192.168.11.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.12.2 255.255.255.0 duplex auto speed auto ! interface Ethernet0/0/0 ip address 192.168.13.254 255.255.255.0 duplex auto speed auto Router R2 ( konfigure Protokol EIGRP) router eigrp 1 network 192.168.11.0 network 192.168.12.0 network 192.168.13.0

Routing Protokol OSPF

Konfigurasi Router Elektro


Konfigurasi interface interface FastEthernet0/0 ip address 192.168.1.254 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.1.0 0.0.0.255 area 1 network 192.168.2.0 0.0.0.255 area 0

Konfigurasi Router PU
Konfigurasi interface interface FastEthernet0/0 ip address 192.168.6.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.9.254 255.255.255.0 duplex auto speed auto ! Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.9.0 0.0.0.255 area 1 network 192.168.6.0 0.0.0.255 area 0

Konfigurasi Router DataInfo


Konfigurasi interface interface FastEthernet0/0 ip address 192.168.5.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.6.1 255.255.255.0 duplex auto speed auto ! interface Ethernet0/0/0 ip address 192.168.7.1 255.255.255.0 duplex auto speed auto! Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.6.0 0.0.0.255 area 0 network 192.168.7.0 0.0.0.255 area 0 network 192.168.5.0 0.0.0.255 area 0

Konfigurasi Router HeadOffice


Konfigurasi interface interface FastEthernet0/0 ip address 192.168.5.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.3.2 255.255.255.0 duplex auto speed auto !

interface Ethernet0/0/0 ip address 192.168.2.2 255.255.255.0 duplex auto speed auto Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.5.0 0.0.0.255 area 0 network 192.168.2.0 0.0.0.255 area 0 network 192.168.3.0 0.0.0.255 area 0

Konfigurasi Router Otomotif


Konfigurasi interface interface FastEthernet0/0 ip address 192.168.8.254 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.7.2 255.255.255.0 duplex auto speed auto Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.7.0 0.0.0.255 area 0 network 192.168.8.0 0.0.0.255 area 2

Konfigurasi Router Sains


interface FastEthernet0/0 ip address 192.168.10.254 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.3.1 255.255.255.0 duplex auto speed auto Konfigurasi Protokol routing OSPF router ospf 1 log-adjacency-changes network 192.168.3.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.255 area 2

Konfigurasi VLAN pada Switch dan Router

Konfigurasi switch1
Mendaftarkan VLAN 2 dan 3 Switch>enable Switch#configure ter Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#name LAN1 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#name LAN3 Switch(config-vlan)#exit Mendaftarkan interface pada VLAN mode access interface fastEthernet 0/1 Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#no shutdown Switch(config-if)#exit interface fastEthernet 0/2 Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit interface fastEthernet 0/3 Switch(config)#interface fastEthernet 0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#no shutdown Switch(config-if)#exit

interface fastEthernet 0/4 Switch(config)#interface fastEthernet 0/4 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#no shutdown Switch(config-if)#exit interface fastEthernet 0/5 Switch(config)#interface fastEthernet 0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#no shutdown Switch(config-if)#exit interface fastEthernet 0/6 Switch(config)#interface fastEthernet 0/6 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#no shutdown Switch(config-if)#exit Mendaftarkan interface pada VLAN Trunk Switch(config)#interface fastEthernet 0/7 Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed Switch(config-if)#switchport trunk allowed vlan add 2 Switch(config-if)#switchport trunk allowed vlan remove 2 Switch(config-if)#switchport trunk allowed vlan remove 3 Switch(config-if)#switchport trunk allowed vlan add 2 Switch(config-if)#switchport trunk allowed vlan add 3 Switch(config-if)#exit Switch(config)#exit Simpan Konfigurasi Switch#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Switch#

Konfigurasi Router
--- System Configuration Dialog --Continue with configuration dialog? [yes/no]: no Press RETURN to get started!

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fastEthernet 0/1 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#exit Menambahkan SUBINTERFACE 0/1.2 Router(config)#interface fastEthernet 0/1.2 %LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up Router(config-subif)#no shutdown Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#ip address 192.168.1.254 255.255.255.0 Router(config-subif)#exit Menambahkan SUBINTERFACE 0/1.3 Router(config)#interface fastEthernet 0/1.3 %LINK-5-CHANGED: Interface FastEthernet0/1.3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.3, changed state to up Router(config-subif)#encapsulation dot1Q 3 Router(config-subif)#no shutdown Router(config-subif)#ip address 192.168.10.254 255.255.255.0 Router(config-subif)#exit Membuat DHCP Server VLAN 2 Router(config)#ip dhcp pool vlan2 Router(dhcp-config)#default-router 192.168.1.254 Router(dhcp-config)#network 192.168.1.0 255.255.255.0 Router(dhcp-config)#exit

Membuat DHCP Server VLAN 3 Router(config)#ip dhcp pool vlan3 Router(dhcp-config)#default-router 192.168.10.254 Router(dhcp-config)#network 192.168.10.0 255.255.255.0 Router(dhcp-config)#exit Router(config)#exit Menyimpan Konfigurasi %SYS-5-CONFIG_I: Configured from console by console Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#

Ujicoba Menggunakan Router Cisco

Router Port

Kabel yang digunakan

Kabel console

Kabel UTP straight trought

A. Hubungkan Kabel Console pada port console di router cisco

B. Hubungkan ujung lain dari kabel console pada PC pada bagian port RS 232 untuk PC yang
digunakan sebagai komputer konfigurasi

C. Hubungkan Kabel UTP pertama pada Port Fastethernet 0/0 dan Kabel UTP kedua pada Port
Fast Ethernet 0/1 pada router.

D. Hubungkan Ujung lainnya dari Kabel UTP pertama ke PC0 dan ujung lainnya dari kabel E.
UTP kedua pada PC1 Pada PC yang digunakan sebagai konfigurasi jalankan perangkat aplikasi Hyper terminal

Tekan Tombol OK untuk meneruskan konfigurasi router

Default management router cisco adalah sebagai berikut: Username : cisco Password : cisco Konfigurasi Router cisco seperti ujicoba diatas, sehingga hasil seperti dibawah : router#configure terminal router(config)#interface fastEthernet 0/0 router(config-if)#no shutdown router(config-if)#ip address 192.168.10.254 255.255.255.0 router(config-if)#exit router(config)#interface fastEthernet 0/1 router(config-if)#no shutdown router(config-if)#ip address 192.168.11.254 255.255.255.0 router(config-if)#exit router(config)#ip route 192.168.11.0 255.255.255.0 fastEthernet 0/1 router(config)#ip route 192.168.10.0 255.255.255.0 fastEthernet 0/0 router(config)#hostname elit1 elit1(config)#exit elit1#copy running-config startup-config Building configuration... [OK] elit1#

Ujicoba Koneksi

A. Konfigurasi jaringan untuk PC0 dengan alamat IP : 192.168.10.1/24 gateway


192.168.10.254

B. Konfigurasi jaringan untuk PC1 dengan alamat IP : 192.168.11.1/24 gateway C.


192.168.11.254 Ping dari PC1 ke gatway yaitu 192.168.11.254, 192.168.10.254 dan ping ke PC0 yaitu 192.168.10.1

Ujicoba Jaringan berbasis VLAN

A. Konfigurasi VLAN 2 dan VLAN 3 pada Switch 3 com superstack3 switch 4200
Ketentuan Port 2,3 digunakan hanya untuk vlan 2 sehingga type port adalah untagged (access) Disambung ke PC1 Ketentuan Port 4,5 digunakan hanya untuk vlan 3 sehingga type port adalah untagged (access) Disambung ke PC2 Ketentuan Port 25 digunakan untuk vlan 1, dan mengirimkan / menrima VLAN 2 dan VLAN 3, type port adalah tagged vlan 2, vlan 3 (trunk) disambung ke Router Cisco FastEthernet 0/0 Ketentuan Port 8 digunakan untuk vlan 1, dan mengirimkan / menrima VLAN 2 dan VLAN 3, type port adalah tagged vlan 2, vlan 3 (trunk) disambung pada PC 3 dengan NIC yang mendukung VLAN Langkah-langkah Ujicoba

1. 3com superstack3 switch 4200 28 port secara default memiliki alamat IP 169.254.100.100/16 2. Beri alamat IP computer dengan alamat jaringan yang sama dengan switch, kemudian ping ke
switch

3. Gunakan 3com device manager untuk konfigurasi switch

4. Tekan icon open device akan mucul form open device , isi alamat IP dari swich : 169.254.100.100, label: 3com, tekan tombol OK

5. Klik tanda + pada menu Vlan managemen sehingga muncul sub menu Layer 2 VLAN management. 6. Tekan tombol Add dan tambahkan VLAN 2 dengan nama LAN1 seperti pada gambar dibawah

7. Lakukan juga untuk VLAN 3 dengan nama LAN 2, sehingga hasilnya seperti gambar dibawah ini

8. Pilih sub menu vlan hybrid, untuk konfigurasi switch port 2 dan 3 dengan type untagged VLAN 2

9. Konfigurasi juga switch port 3 dan 5 dengan type untagged VLAN 3 10. Konfigurasi juga switch port 8 dengan type taged VLAN 3 dan VLAN 2, untagged VLAN1 sepeti gambar dibawah

11. Konfigurasi juga switch port 25 dengan type taged VLAN 3 dan VLAN 2, untagged VLAN1 B. Konfigurasi Router Cisco 2800 Ketentuan Interface FastEthernet 0/0 dibuat 2 buah sub Interface dengan nama : o FastEthernet 0/0 2 (VLAN 2) o FastEthernet 0/0 3 (VLAN 2) Ketentuan IP address interface FastEthernet 0/0 2 : 192.168.1.254 Ketentuan IP address interface FastEthernet 0/0 3 : 192.168.10.254 Ketentuan DHCP server untuk VLAN 2 dengan network 192.168.1.0/24 Ketentuan DHCP server untuk VLAN 3 dengan network 192.168.10.0/24 Buat Router protocol static dari LAN 1 ke LAN 2 1. Hubungkan PC dengan router menggunakan Kabel console 2. Konfigurasikan Router seperti pada perintah berikut :
Password: elit1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. (konfigurasi sub Interface)

elit1(config)#interface fastEthernet 0/0 elit1(config-if)#no shutdown elit1(config-if)#exit elit1(config)#interface fastEthernet 0/0.2 elit1(config-subif)#encapsulation dot1Q 2 elit1(config-subif)#no shutdown elit1(config-subif)#exit elit1(config)#interface fastEthernet 0/0.3 elit1(config-subif)#encapsulation dot1Q 3 elit1(config-subif)#no shutdown elit1(config-subif)#exit Konfigurasi IP address pada Sub Interface elit1(config)#interface fastEthernet 0/0.2 elit1(config-subif)#ip address 192.168.1.254 255.255.255.0 elit1(config-subif)#exit elit1(config)#interface fastEthernet 0/0.3 elit1(config-subif)#ip address 192.168.10.254 255.255.255.0 elit1(config-subif)#exit Konfigurasi DHCP Server pada VLAN 2 dan VLAN3 elit1(config)#ip dhcp pool vlan2 elit1(dhcp-config)#default-router 192.168.1.254 elit1(dhcp-config)#network 192.168.1.0 255.255.255.0 elit1(dhcp-config)#exit elit1(config)#ip dhcp pool vlan3 elit1(dhcp-config)#default-router 192.168.10.254 elit1(dhcp-config)#network 192.168.10.0 255.255.255.0 elit1(dhcp-config)#exit elit1(config)#exit elit1#copy running-config sta elit1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] elit1#

C. Ujicoba Koneksi Ujicoba 1 1. Install Driver NIC dengan dukungan VLAN , contoh untuk Marvell Yukon Ethernet Controller 2. Pada Control Panel > network Connection terlihat nama nic adalah Marvell Yukon, Klik kanan dan pilih Propertis

3. Pilih TAB menu VLAN dan buat 3 buah vlan yaitu vlan1,vlan2 dan Vlan3

4. Cek IP address Pada VLAN 2 dan VLAN 3 Di PC3 (computer) dengan NIC yang telah dilengakapi vasilitas VLAN

VLAN2 mendapat alamat IP 192.168.1.1

VLAN 3 mendapat alamat ip 192.168.10.1

Catatan : Untuk Linux . tinggal install paket vlan lalu dapat langsung tulis konfigurasinya, menggunakan editor. Contoh pada ubuntu
Install VLAN package di computer:

sudo apt-get install vlan 2. Edit your /etc/network/interfaces file so it would contain the following: # The loopback network interface auto lo iface lo inet loopback # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. auto vlan2 auto vlan3 auto vlan101 # VLAN 2 iface vlan4 inet static address 192.168.1.8 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 mtu 1500 vlan_raw_device eth0 # VLAN 3 iface vlan5 inet static address 192.168.10.8 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 mtu 1500 vlan_raw_device eth0

You might also like