Monday, 28 March 2011
Konfigurasi NAT & DHCP Pada Router Cisco
**********Konfigurasi NAT**********
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname NAT-Router
NAT-Router(config)#ena sec cisco
NAT-Router(config)#line con 0
NAT-Router(config-line)#pass cisco
NAT-Router(config-line)#login
NAT-Router(config-line)#line vty 0 4
NAT-Router(config-line)#pass cisco
NAT-Router(config-line)#login
NAT-Router(config-line)#exit
NAT-Router(config)#int f0/0
NAT-Router(config-if)#exit
NAT-Router(config)#int fa1/0
NAT-Router(config-if)#ip add 150.1.1.1 255.255.255.0
NAT-Router(config-if)#ip nat inside
NAT-Router(config-if)#ip hel
NAT-Router(config-if)#ip help
NAT-Router(config-if)#ip helper-address 200.10.10.2
NAT-Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
NAT-Router(config-if)#exit
NAT-Router(config)#int s2/0
NAT-Router(config-if)#ip add 200.10.10.1 255.255.255.0
NAT-Router(config-if)#clock rate 64000
NAT-Router(config-if)#ip nat inside
NAT-Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
NAT-Router(config-if)#exit
NAT-Router(config)#int f0/0
NAT-Router(config-if)#ip add 1.1.1.1 255.255.255.0
NAT-Router(config-if)#ip nat outside
NAT-Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
NAT-Router(config-if)#exit
NAT-Router(config)#acc
NAT-Router(config)#access-list 1 permit 150.1.0.0 0.255.255.255
NAT-Router(config)#access-list 1 permit 200.10.10.0 0.255.255.255
NAT-Router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.11
NAT-Router(config)#router rip
NAT-Router(config-router)#net 200.10.10.0
NAT-Router(config-router)#redis
NAT-Router(config-router)#redistribute sta
NAT-Router(config-router)#redistribute static
NAT-Router(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
NAT-Router#copy r s
Destination filename [startup-config]?
Building configuration...
[OK]
NAT-Router#
**********Konfigurasi DHCP**********
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname DHCP-Router
DHCP-Router(config)#ena sec cisco
DHCP-Router(config)#line con 0
DHCP-Router(config-line)#pass cisco
DHCP-Router(config-line)#login
DHCP-Router(config-line)#line vty 0 4
DHCP-Router(config-line)#pass cisco
DHCP-Router(config-line)#login
DHCP-Router(config-line)#exit
DHCP-Router(config)#int f0/0
DHCP-Router(config-if)#ip add 10.10.10.1 255.255.255.0
DHCP-Router(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
DHCP-Router(config-if)#exit
DHCP-Router(config)#int se2/0
DHCP-Router(config-if)#ip add 200.10.10.2 255.255.255.0
DHCP-Router(config-if)#no shut
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
DHCP-Router(config-if)#exit
DHCP-Router(config)#router rip
DHCP-Router(config-router)#net 200.10.10.0
DHCP-Router(config-router)#exit
DHCP-Router(config)#ser
DHCP-Router(config)#service ?
password-encryption Encrypt system passwords
DHCP-Router(config)#service dhcp
DHCP-Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
DHCP-Router#copy r s
Destination filename [startup-config]?
Building configuration...
[OK]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment