Berikut aku tuliskan config menghubungkan jaringan lokal dengan ISP :
1. Siapkan topologi sbb :2. Configurasi Router 0 dengan command sbb:
Building configuration...
Current configuration : 2493 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
ip dhcp pool vlan-10
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 8.8.8.8
domain-name nurohman.online
ip dhcp pool vlan-20
network 20.20.20.0 255.255.255.0
default-router 20.20.20.1
dns-server 8.8.8.8
domain-name nurohman.online
ip dhcp pool vlan-30
network 30.30.30.0 255.255.255.0
default-router 30.30.30.1
dns-server 8.8.8.8
domain-name nurohman.online
ip dhcp pool vlan-40
network 40.40.40.0 255.255.255.0
default-router 40.40.40.1
dns-server 8.8.8.8
domain-name nurohman.online
ip dhcp pool vlan-50
network 50.50.50.0 255.255.255.0
default-router 50.50.50.1
dns-server 8.8.8.8
domain-name nurohman.online
ip dhcp pool 10
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524OO88-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
description ISP1 Link
ip address 192.168.1.2 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1
description ISP2 Link
ip address 172.16.1.2 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1.10
description vlan-10
encapsulation dot1Q 10
ip address 10.10.10.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.20
description vlan-20
encapsulation dot1Q 20
ip address 20.20.20.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.30
description vlan-30
encapsulation dot1Q 30
ip address 30.30.30.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.40
description vlan-40
encapsulation dot1Q 40
ip address 40.40.40.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1.50
description vlan-50
encapsulation dot1Q 50
ip address 50.50.50.1 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/2
no ip address
ip nat outside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat pool BLOCK-1 192.168.1.50 192.168.1.100 netmask 255.255.255.0
ip nat inside source list 1 pool BLOCK-1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
ip flow-export version 9
!
!
access-list 1 permit 10.10.10.0 0.0.0.255
access-list 1 permit 20.20.20.0 0.0.0.255
access-list 1 permit 30.30.30.0 0.0.0.255
access-list 1 permit 40.40.40.0 0.0.0.255
access-list 1 permit 50.50.50.0 0.0.0.255
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
3. Setting komputer dengan IP DHCP
4. Setting server dengan ip sbb :
IP Add : 8.8.8.8
Net Mask : 255.255.255.0
IP Def Gateway : 8.8.8.1
DNS :.8.8.8.8
5. Konfigurasi Router 2
Router#sh run
Building configuration...
Current configuration : 703 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX15248S4Z-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 8.8.8.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Router#
Selamat mencoba, semoga berhasil ...........
0 Comments