របៀបតំឡើង អ៊ិនធើណិត(Internet) ដោយប្រើប្រាស់ Cisco Router 1800 Series


តាមរូបខាងលើឃើញថា ក្រុមហ៊ុន ISP បានផ្តល់នូវ IP Address, Subnet Mask, Default Gateway, DNS។ យើងនិងធ្វើការកំណត់នូវ IP Address ទៅអោយ Router ដូចរូបភាពខាងក្រោម


Router Configuration:

   Router>enable
   Router#configure terminal
   Router(config)#hostname R1841
   R1841(config)#

   R1841#configure terminal
   R1841(config)#line con 0
   R1841(config-line)#login local
   R1841(config-line)#password cisco

   R1841#configure terminal
   R1841(config)#line vty 0 4
   R1841(config-line)#login local
   R1841(config-line)#password telnet

   R1841(config)#service password-encryption


   R1841(config)#username hour4khmer privilege 15 password cisco

   R1841(config)#ip domain name isp.com.kh
   R1841(config)#ip name-server 20.20.20.1 30.30.30.1

   R1841(config)#ip dhcp pool DHCP-POOL
   R1841(dhcp-config)#network 192.168.1.0 255.255.255.0
   R1841(dhcp-config)#dns-server 20.20.20.1 30.30.30.30.1
   R1841(dhcp-config)#default-router 192.168.1.1


   R1841(config)#ip dhcp excluded-address 192.168.1.0 192.168.1.99

   R1841#configure terminal
   R1841(config)#interface f0/0
   R1841(config-if)#description LINK TO LAN-NETWORK
   R1841(config-if)#ip address 192.168.1.1 255.255.255.0
   R1841(config-if)#no shutdown
   R1841(config-if)#ip nat inside

   R1841#configure terminal
   R1841(config)#interface f0/1
   R1841(config-if)#description LINK TO ISP PROVIDER
   R1841(config-if)#ip address 10.10.10.2 255.255.255.252
   R1841(config-if)#no shutdown
   R1841(config-if)#ip nat outside

   R1841(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.1


   R1841(config)#ip nat pool NAT-POOL 10.10.10.2 10.10.10.2 netmask 255.255.255.252
   R1841(config)#ip nat inside source list 1 pool NAT-POOL overload

   R1841(config)#access-list 1 permit 192.168.1.0 0.0.0.255


Enjoy...!

No comments:

Post a Comment