Sunday, 17 October 2010

Cisco Router behind SOHO Router.

I'm just finishing off a Cisco networking course. I've got some real cisco kit so wanted to make use of it. Below is the sum of all my knowledge which I pass on to the world. I linked my Cisco Kit (2900 Switches and 2610 Router) to network through my Linksys cable modem router. You should be able to modify it for your own router (cable or adsl).

Regards - John



! Set up for NAT/DHCP Cisco Router siting
! behind a Linksys Router (WRN4000)
! Johnny October 2010


!This line for local management
ip name-server 4.2.2.2

! Set up DHCP for your LAN (ethernet 0/1)
service dhcp
ip dhcp pool myDHCPPool
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
dns-server 4.2.2.2
exit

ip dhcp excluded-address 10.0.0.1

! My WAN Link - Plug this into one of your 4 Ports on your LinkSYS
! My Linksys router details are:- 192.168.1.0/24 GW:192.168.1.1

interface fa 0/0
ip address dhcp
no cdp enable
no ip route-cache
ip nat outside
exit

! Connect this to your 2900 Switch Port
! This is your Local LAN Port
interface fa 0/1
ip address 10.0.0.1 255.255.255.0
no cdp enable
no ip route-cache
ip nat inside
exit

access-list 10 permit 10.0.0.0 0.0.0.255
! Here we go go.
ip nat inside source list 10 interface fa 0/0 overload

! Routing table - Default Route to Linksys Router Gateway (192.168.1.1)

ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1

CIsco Router Behind a Linksys WRVS4400N or SOHO router

Some peeps might find this useful -
Will probably work with most SOHO routers - just match your GW address and subnet
Linksys use 192.168.1.0/24 GW: 192.168.1.1
Regards
John


! Set up for NAT/DHCP Cisco Router siting
! behind a Linksys Router (WRN4000)
! Johnny October 2010


!This line for local management
ip name-server 4.2.2.2

! Set up DHCP for your LAN (ethernet 0/1)
service dhcp
ip dhcp pool myDHCPPool
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
dns-server 4.2.2.2
exit

ip dhcp excluded-address 10.0.0.1

! My WAN Link - Plug this into one of your 4 Ports on your LinkSYS
! My Linksys router details are:- 192.168.1.0/24 GW:192.168.1.1

interface fa 0/0
ip address dhcp
no cdp enable
no ip route-cache
ip nat outside
exit

! Connect this to your 2900 Switch Port
! This is your Local LAN Port
interface fa 0/1
ip address 10.0.0.1 255.255.255.0
no cdp enable
no ip route-cache
ip nat inside
exit

access-list 10 permit 10.0.0.0 0.0.0.255
! Here we go go.
ip nat inside source list 10 interface fa 0/0 overload

! Routing table - Default Route to Linksys Router Gateway (192.168.1.1)

ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1