Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1605 and ADSL - routing issue

Status
Not open for further replies.

teknoguy

Technical User
Feb 1, 2001
182
0
0
CA
Hi.. Im trying to configure my router to my ISP. here is my current config. I beleive its a routing issue but im not sure. i beleive it might be the ip route command which not workin right.

thanks
ryan

version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname rys1605
!
!
ip subnet-zero
ip name-server 207.102.99.66
!
interface Ethernet0
ip address dhcp
ip nat outside
arp timeout 1500
no cdp enable
!
interface Ethernet1
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
ip classless
ip route 0.0.0.0 0.0.0.0 64.180.160.254
no ip http server
!
!
line con 0
line vty 0 4
login
!
end

 
Teknoguy,

I have a similar config... Just some advice, Since you use DHCP for the Ethernet 0 interface I would set my default routes to point out that interface not to an IP address. If you reboot the router or the ISP decided to change the subnet you're on now your router will have routing issues.

try this:

ip route 0.0.0.0 0.0.0.0 interface ethernet 0
or
ip route 0.0.0.0 0.0.0.0 ethernet 0
not 100% on syntax but you get the idea!!!

Also,
is the above config your hole config? You are missing key NAT statements if you want hosts on your 192. network to work correctly.


ip nat inside source list 1 interface ethernet 0 overload
access list 1 permiat 192.168.1.0 0.0.0.255
access list 1 remark Used for NAT


Hope this helps!!!

-debugall
 
ok.. now we're getting somewhere. i can now ping my eth0 interface from my host computer. but when i ping the internet using an ip. it says

Rely from 192.168.1.1: Destination net unreachable
i think we're still missing something.
also i added the access lists to the eth0 interface.. to go out. would i need any more access lists?

thanks
ryan




hostname rys1605
!
!
ip subnet-zero
ip name-server 207.102.99.66
!
interface Ethernet0
ip address dhcp
ip access-group 1 out
ip nat outside
arp timeout 1500
no cdp enable
!
interface Ethernet1
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
ip nat inside source list 1 interface Ethernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Ethernet0
no ip http server
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 remark used for nat
!
line con 0
line vty 0 4
login
!
end

 
remove this line from eth0 ip access-group 1 out
 
Ok.. i got rid of that line.

from the router i can ping my isp's default gateway. but i can't from my computer. i also tryed to ping other ip's(from router) to see if it goes beyond the default gateway.. but it doesn't.
from my computer i can ping my eth0 interface but i can't ping the isp's default gateway. i am stumped.

ps: i thought access-lists are supposed to be applied to an interface via the access-group command??

any help would be greatly appreciated.

Ryan

 
Ryan,

Make sure you have correct mask / default gateway settings yon your pc. This sounds like a problem on the Ethernet segment. Also, Can you ping 64.58.79.230 from your router (that's yahoo.com). If so, you more than likely have incorrect IP settings on your PC. If you are using a Windows PC post the settings of a route print also, post your show ip route on the router.

thanks,

Lee
 
Here is the info. from the router I tryed to ping yahoo's ip... with no success. but i can ping other ip's in the 64.180.160.0 network. seems like its a routing issue for sure. would i need to manually enter in my isp's default-gateway on the router? I tyied it and still cannot ping beyond it. on my pc i entered in
IP: 192.168.1.2
subnet 255.255.255.0
default gateway 192.168.1.1

DNS: whatever the ISP's name servers are.



Gateway of last resort is 0.0.0.0 to network 0.0.0.0

64.0.0.0/19 is subnetted, 1 subnets
C 64.180.160.0 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Ethernet1
S* 0.0.0.0/0 is directly connected, Ethernet0


Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 50 ba 4e cf f8 ...... D-Link DFE-538TX 10/100 Adapter - Virtual PC
Emulated Ethernet Switch Driver
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.2 192.168.1.2 20
192.168.1.2 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.2 192.168.1.2 20
224.0.0.0 240.0.0.0 192.168.1.2 192.168.1.2 20
255.255.255.255 255.255.255.255 192.168.1.2 192.168.1.2 1
Default Gateway: 192.168.1.1
===========================================================================
Persistent Routes:
None

 
Type "term mon", then "debug ip packet".
Type &quot;ping&quot;<CR>
and follow the instructions this is an extended ping and you need to create a ping with the source address of E1. just press return to default settings until you reach &quot;extended commands&quot; press &quot;y&quot;. Type 192.168.1.1.

Leave the rest of the settigns on default. This will create a ping packet with a source address on the internal network. The debug shoud show you what is happening to the ICMP packet as it traverses the router.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top