CONTOH TOPOLOGI JARINGAN SALAH SATU PROVIDER

Posted by Sharing Ilmu Pengetahuan


1.       VLAN 1 (VLAN Manajemen)
2.       VLAN 2 (VLAN tkj1)
3.       VLAN 3 (VLAN tkj2)
4.       VLAN 4 (VLAN tkj3)

NETWORK
1.       VLAN 2(192.168.1.0)
2.       VLAN 3 (192.168.1.4)
3.       VLAN 4(192.168.1.8)

NETWORK DI vlan
1.       Tjk1 192.168.5.0
2.       Tkj2 192.168.3.0
3.       Tkj3 192.168.4.0



topologi diatas menggunakan ip publiknya ada di dalam,sedangkan ip privatenya ada di luar
kita jangan bingung,karena pada umumnya ip private yang di gunakan hnya sebagai penghubung saja.
Dengan melihat jaringan seperti yang di atas kita hubungkan dengan ip static menuju ip public dan dari ip public menuju provider kita menggunakan default routing,
Sedangakan untuk  jaringan bagian dalam kita NAT kan ip public kita. Di sebelah dalam router kita gunakan OSPF untuk menyambungkan jaringan kita,OSPF ini hanya sampai pada router dimana ip public.

pertama kita konfigurasi R1
Router(config)#hostname R1
R1(config)#
R1(config)#interface FastEthernet0/0
R1(config-if)#
R1(config-if)#exit
R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 222.222.222.222 255.255.255.0
R1(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
R1(config-if)#
R1(config-if)#exit
R1(config)#interface FastEthernet0/0
R1(config-if)#
R1(config-if)#exit
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Selanjutnya kita pasang ip static untuk menghubungkan ip public dengan ip provider
R1(config)#ip route 111.111.111.0 255.255.255.252 192.168.1.2
R1(config)#


R2#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#in fa0/1
R2(config-if)#in
R2(config-if)#ip add 192.168.1.2 255.255.255.252
R2(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R2(config-if)#ex
R2(config)#in
R2(config)#interface fa
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip add 111.111.111.2 255.255.255.224
R2(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#ex
Selanjutnya kita konfigurasi default routing
R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

R3(config)#interface fastEthernet 0/1

R3(config-if)#n shutdown

R3(config-if)#exit
R3(config)#interface fastEthernet 0/1.2
%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up
R3(config-subif)#encapsulation dot1Q 2
R3(config-subif)#ip add 192.168.2.2 255.255.255.252
R3(config-subif)#exit

R3(config)#interface fastEthernet 0/1.3

%LINK-5-CHANGED: Interface FastEthernet0/1.5, changed state to up
R3(config-subif)#encapsulation dot1Q 5
R3(config-subif)#ip add 192.168.2.6 255.255.255.252
R3(config-subif)#exit

R3(config)#interface fastEthernet 0/1.4

%LINK-5-CHANGED: Interface FastEthernet0/1.4, changed state to up
R3(config-subif)#encapsulation dot1Q 4
R3(config-subif)#ip add 192.168.2.10 255.255.255.252
R3(config-subif)#exit
R3(config)#ip route 0.0.0.0 0.0.0.0 111.111.111.2
R3(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#ping 222.222.222.222

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.222.222.222, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 63/75/94 ms

R3#ping 222.222.222.222

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.222.222.222, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/91/110 ms

R3#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip nat ou
R3(config-if)#ip nat outside
R3(config-if)#exit
R3(config)#interface fastEthernet 0/1.4
R3(config-subif)#ip nat ins
R3(config-subif)#ip nat inside
R3(config-subif)#exit
R3(config)#interface fastEthernet 0/1.3
R3(config-subif)#ip nat inside
R3(config-subif)#exit
R3(config)#interface fastEthernet 0/1.2
R3(config-subif)#ip nat inside
R3(config-subif)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#cop run st
Destination filename [startup-config]? y
%Error copying nvram:y (Invalid argument)
R3#cop run st
Destination filename [startup-config]?
Building configuration...
[OK]

R3#sh r
Building configuration...

Current configuration : 741 bytes
!
version 12.4
no service password-encryption
!
hostname R3
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
 ip address 111.111.111.1 255.255.255.224
 ip nat outside
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/1.2
 encapsulation dot1Q 2
 ip address 192.168.2.2 255.255.255.252
 ip nat inside
!
interface FastEthernet0/1.3
 encapsulation dot1Q 3
 ip address 192.168.2.6 255.255.255.252
 ip nat inside
!
interface FastEthernet0/1.4
 encapsulation dot1Q 4
 ip address 192.168.2.10 255.255.255.252
 ip nat inside
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 111.111.111.2
!
!
!
!
!
line con 0

R3#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#ip nat insi
R3(config)#ip nat inside sou
R3(config)#ip nat inside source lis
R3(config)#ip nat inside source list 1 ?
  interface  Specify interface for global address
  pool       Name pool of global addresses
R3(config)#ip nat inside source list 1 in
R3(config)#ip nat inside source list 1 interface fa
R3(config)#ip nat inside source list 1 interface fastEthernet 0/0 o
R3(config)#ip nat inside source list 1 interface fastEthernet 0/0 overload
R3(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#sh r
Building configuration...

Current configuration : 804 bytes
!
version 12.4
no service password-encryption
!
hostname R3
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
 ip address 111.111.111.1 255.255.255.224
 ip nat outside
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/1.2
 encapsulation dot1Q 2
 ip address 192.168.2.2 255.255.255.252
 ip nat inside
!
interface FastEthernet0/1.3
 encapsulation dot1Q 3
 ip address 192.168.2.6 255.255.255.252
 ip nat inside
!
interface FastEthernet0/1.4
 encapsulation dot1Q 4
 ip address 192.168.2.10 255.255.255.252
 ip nat inside
!
interface Vlan1
 no ip address
 shutdown
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 111.111.111.2
!
!
!
!
!
line con 0
line vty 0 4
 login
!
!

R3#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#ac
R3(config)#access-list 1 pe
R3(config)#access-list 1 permit any
R3(config)#ro o 1
R3(config-router)#exit
R3(config)#ro
R3(config)#router o
R3(config)#router ospf 1
R3(config-router)#ne
R3(config-router)#network 192.168.2.0 0.0.0.3 area 0
R3(config-router)#network 192.168.2.4 0.0.0.3 area 0
R3(config-router)#network 192.168.2.8 0.0.0.3 area 0
R3(config-router)#de
R3(config-router)#default-information o
R3(config-router)#default-information originate
R3(config-router)#ex
R3(config)#

 Selanjutnya kita konfigurasi switch
witch>
Switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mo
Switch(config)#vtp mode se
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vt
Switch(config)#vtp do
Switch(config)#vtp domain a
Changing VTP domain name from NULL to a
Switch(config)#vt
Switch(config)#vtp pa
Switch(config)#vtp password a
Setting device VLAN database password to a
Switch(config)#in
Switch(config)#interface ra
Switch(config)#interface range fa
Switch(config)#interface range fastEthernet 0/1 - 4
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode tr
Switch(config-if-range)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
Switch(config-if-range)#sw
Switch(config-if-range)#switchport tr
Switch(config-if-range)#switchport trunk na
Switch(config-if-range)#switchport trunk native vla
Switch(config-if-range)#switchport trunk native vlan 1
Switch(config-if-range)#^Z
%SYS-5-CONFIG_I: Configured from console by console

Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#na tkj1
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#na
Switch(config-vlan)#name tkj2
Switch(config-vlan)#exit
Switch(config)#vlan 4
Switch(config-vlan)#name tkj3
Switch(config-vlan)#exit
Switch(config)#in fa0/3
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vla
Switch(config-if)#switchport access vlan 2
Switch(config-if)#ex
Switch(config)#in fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#ex
Switch(config)#in fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch(config-if)#^Z
R4(config-if)#exit
R4(config)#in fa0/1
R4(config-if)#ip add 192.168.5.1 255.255.255.0
R4(config-if)#n s
% Ambiguous command: "n s"
R4(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R4(config-if)#exit
R4(config)#ro
R4(config)#router o
R4(config)#router ospf 1
R4(config-router)#net
R4(config-router)#network 192.168.5.0 0.0.0.255 area 0
R4(config-router)#network 192.168.2.8 0.0.0.3 area 0
R4(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R5(config-if)#ex
R5(config)#in fa0/1
R5(config-if)#ip add 192.168.3.1 255.255.255.0
R5(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R5(config-if)#ex
R5(config)#router ospf 1
R5(config-router)#network 192.168.2.0 0.0.0.3 area 0
R5(config-router)#network 192.168.3.0 0.0.0.255 area 0
R5(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
!
!
!
!
R6>en
R6#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
R6(config)#in fa0/0
R6(config-if)#ip add 192.168.2.5 255.255.255.252
R6(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R6(config-if)#in fa0/1
R6(config-if)#n sh

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R6(config-if)#ip add 192.168.4.1 255.255.255.0
R6(config-if)#^Z

Related Post



Posting Komentar

Perhatian Para Pembaca!
Dilarang Keras:
1. Menggunakan kata-kata kotor dalam menulis komentar, terima kasih atas partisipasi saudara/i.
2. Menulis link hidup, link yang tidak berkaitan.
3. Silahkan sertakan sumber jika meng-copy tulisan di atas.
4. Sangat disarankan untuk memfollow blog ini.
5. Jangan lupa untuk berlangganan artikel terbaru.