CISCO ROUTER BASIC CONFIGURATION
Set Hostname.
R1(config)#hostname BOL_RTR
Set WAN IP.
BOL_RTR(config)#interface fastEthernet 0/0
BOL_RTR(config-if)#description WAN interface
BOL_RTR(config-if)#ip address 192.168.1.151 255.255.255.0
BOL_RTR(config-if)#duplex full
BOl_RTR(config-if)#ip nat outside
BOL_RTR(config-if)#no shutdown
Set route for INTERNET ACCESS.
BOL_RTR(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Set LAN IP (as Gateway).
BOL_RTR(config)#interface fastEthernet 0/1
BOL_RTR(config-if)#description LAN_interface
BOL_RTR(config-if)#ip address 172.16.16.1 255.255.0.0
BOL_RTR(config-if)#duplex full
BOL_RTR(config-if)#ip nat inside
BOL_RTR(config-if)#no shutdown
Configure DHCP for LAN.
BOL_RTR(config)#ip dhcp pool LAN
BOL_RTR(dhcp-config)#network 172.16.16.0 255.255.0.0
BOL_RTR(dhcp-config)#default-router 172.16.16.1
Set DNS.
BOL_RTR(config)#ip name-server 8.8.8.8
BOL_RTR(config)#no ip domain-lookup
BOL_RTR(config)#no aaa new-model
Set NAT.
BOL_RTR(config)#ip nat pool LAN 192.168.1.151 192.168.1.151 netmask 255.255.255.0
BOL_RTR(config)#ip nat inside source list 120 pool LAN overload
BOL_RTR(config)#access-list 120 permit ip any any
Set terminal credential.
BOL_RTR(config)#line vty 0 4
BOL_RTR(config-line)#password 12345
BOL_RTR(config-line)#login local
BOL_RTR(config-line)#transport input all
BOL_RTR(config)#line vty 5 15
BOL_RTR(config-line)#password 67890
BOL_RTR(config-line)#login local
BOL_RTR(config-line)#transport input all
BOL_RTR(config-line)#line console 0
BOL_RTR(config-line)#password 111213
BOL_RTR(config-line)#login local
R1(config)#hostname BOL_RTR
Set WAN IP.
BOL_RTR(config)#interface fastEthernet 0/0
BOL_RTR(config-if)#description WAN interface
BOL_RTR(config-if)#ip address 192.168.1.151 255.255.255.0
BOL_RTR(config-if)#duplex full
BOl_RTR(config-if)#ip nat outside
BOL_RTR(config-if)#no shutdown
Set route for INTERNET ACCESS.
BOL_RTR(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Set LAN IP (as Gateway).
BOL_RTR(config)#interface fastEthernet 0/1
BOL_RTR(config-if)#description LAN_interface
BOL_RTR(config-if)#ip address 172.16.16.1 255.255.0.0
BOL_RTR(config-if)#duplex full
BOL_RTR(config-if)#ip nat inside
BOL_RTR(config-if)#no shutdown
Configure DHCP for LAN.
BOL_RTR(config)#ip dhcp pool LAN
BOL_RTR(dhcp-config)#network 172.16.16.0 255.255.0.0
BOL_RTR(dhcp-config)#default-router 172.16.16.1
Set DNS.
BOL_RTR(config)#ip name-server 8.8.8.8
BOL_RTR(config)#no ip domain-lookup
BOL_RTR(config)#no aaa new-model
Set NAT.
BOL_RTR(config)#ip nat pool LAN 192.168.1.151 192.168.1.151 netmask 255.255.255.0
BOL_RTR(config)#ip nat inside source list 120 pool LAN overload
BOL_RTR(config)#access-list 120 permit ip any any
OR
BOL_RTR(config)#access-list 1 permit 192.168.1.0 0.0.0.255BOL_RTR(config)#ip nat inside source list 1 interface gigabitethernet0/0 overloadSet terminal credential.
BOL_RTR(config)#line vty 0 4
BOL_RTR(config-line)#password 12345
BOL_RTR(config-line)#login local
BOL_RTR(config-line)#transport input all
BOL_RTR(config)#line vty 5 15
BOL_RTR(config-line)#password 67890
BOL_RTR(config-line)#login local
BOL_RTR(config-line)#transport input all
BOL_RTR(config-line)#line console 0
BOL_RTR(config-line)#password 111213
BOL_RTR(config-line)#login local
Comments
Post a Comment