Tuesday, July 15, 2014

How to configure cisco router 1841

Unknown | 4:19 AM

How to configure cisco router 1841 can access to internet

Please See network infrastructure 
I. Configure DHCP

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip dhcp pool 192
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#exit

II. Apply DNS
Router(config)#ip name-server 118.222.222.222
Router(config)#ip name-server 192.168.100.10

III. Configure Route And Default-Gateway
Router(config)#ip route 0.0.0.0 0.0.0.0 115.31.180.16
Router(config)#ip route 192.168.1.0 255.255.255.0 115.31.180.16
Router(config)#ip default-gateway 115.31.180.16

IV. Apply IP on each interface
Router(config)#int f0/0
Router(config-if)#ip add 115.31.180.2 255.255.255.240
Router(config-if)#no sh
Router(config-if)#ip nat outside

Router(config)#int f0/1
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#ip nat inside

V. Create Access List (NAT)
Router(config)#access-list 7 permit 192.168.1.0 0.0.0.255
Router(config)#ip nat inside source list 7 interface fastethernet 0/0 overload

Test (For telnet service)
Create User and Login
Router(config)#username phanny privilege 15 secret phanny
Router(config)#line vty 0 4
Router(config-line)#privilege level 15
Router(config-line)#login local
Router(config-line)#exit
So, after you login router will required you to fill in username and password.

But if you use only command Router(config-line)#login when you telnet you will
required only password in line vty (123). Example:
Router(config)#line vty 0 4
Router(config-line)#privilege level 15
Router(config-line)#password 123
Router(config-line)#login 
Router(config-line)#exit





Share it →

No comments:

Post a Comment

Back to top

networkingandsystem © 2014

Published By Nget Phanny | Designed By IT4444