Link to home
Start Free TrialLog in
Avatar of Pentrix2
Pentrix2

asked on

setting up a router as a internet gateway

I got a 2611 router with e0/0 as the outside, and e0/1 for internal.  when I plug it in and ping my default gateway, given from the isp.

Reply frmo 192.168.1.1 :  Destination host unreachable.

Here is my running config

sh run
Building configuration...

Current configuration : 1157 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
enable secret 5 $1$60dM$agBXmEfl295aosf75SOHN1
!
ip subnet-zero
!
!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool dhcppool
   network 192.168.1.0 255.255.255.0
   default-router 68.106.112.1
   domain-name Farm.com
   dns-server 68.100.16.25
!
 --More--         !
call rsvp-sync
!
!
!
!
!
!
!
!
interface Ethernet0/0
 ip address dhcp
 ip access-group 101 in
 full-duplex
!
interface BRI0/0
 no ip address
 encapsulation hdlc
 shutdown
!
interface Serial0/0
 no ip address
 shutdown
 --More--         !
interface Ethernet0/1
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 full-duplex
!
ip nat inside source list 1 interface Ethernet0/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 68.106.112.1
no ip http server
!
access-list 1 permit any
access-list 101 permit udp any eq domain any
access-list 101 permit tcp any any established
access-list 101 permit icmp any any echo-reply
!
dial-peer cor custom
!
!
!
!
!
line con 0
 --More--          password 7 001012080354
 login
line aux 0
 password 7 105A08170218
 login
line vty 0 4
 password 7 105A08170218
 login
!
end

Router#
ASKER CERTIFIED SOLUTION
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That'll teach me to stop looking once I find the obvious. ;-)

-Don
Avatar of Pentrix2
Pentrix2

ASKER

Thanks guys, I'll have to try it out when I get home from work today.  :)

Pen
> ip route 0.0.0.0 0.0.0.0 68.106.112.1

The ISP should be supplying a default gateway address as part of its DHCP config for you.  Use it.

the 68.106.112.1 is the default gateway given from my isp, by doing ipconfig all

so should i still use 192.168.1.1
Yes, the default-router command under the DHCP parameters is the default gateway the router hands out to the internal hosts.  The router's ethernet interface is the default router for your internet network so use 192.168.1.1.

default-router 192.168.1.1

In your "ip route" statement on the router, use the ISP supplied gateway address 68.106.112.1.