Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Good Morning Team,

Sorry this may bore lots of you, but it is a headache for me trying to learn.

As you see above Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

From within the router via con port, I can ping both directions
eg: ping 192.168.2.2 = PC
ping 192.168.1.1 = asa5505 gateway

But pinging from the PC direct to the firewall dont work, or to the outside world

Below is my listing if anyone can help it would be great

Thanks from Alan

!
version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
boot-start-marker
boot system flash:c2600-i-mz.123-19a.bin
boot-end-marker
!
!
memory-size iomem 10
no aaa new-model
ip subnet-zero
ip cef
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.40
!
ip dhcp pool locallan
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 212.23.3.100 212.23.6.100
!
!
!
!
!
interface Ethernet0/0
ip address dhcp
ip nat outside
full-duplex
!
interface Serial0/0
no ip address
shutdown
!
interface Ethernet0/1
ip address 192.168.2.1 255.255.255.0
ip nat inside
full-duplex
!
ip nat inside source list 101 interface Ethernet0/0 overload
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
!
access-list 101 permit ip 192.168.2.0 0.0.0.255 any log
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Alan

The speed could be duplex settings on your router. Check that everything is running full-duplex preferably at 100Mbps.

Glad we got there in the end

Please mark this post as solved.

Jon

57 REPLIES
Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Stewart

Can you post from the router -

1) sh ip route

2) sh ip int brief

also why do you have a DHCP pool for 192.168.1.0/24 and then have the router interface using DHCP, does the ASA also have a DHCP pool for 192.168.1.0/24 ?

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon

Let me try and explain, the asa5505 is a firewall as you know, it has the adsl router feeding in to it, and the output port is dhcp (192.168.1.1 - 192.168.1.127 , ad I have three computers feeding from that point, so I thought the Ethernet0/0 would also need to be set at dhcp, I have not problem changing things if you come up with a better idea, as I said I am learnig probably the hard way

Thanks from Alan

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is 192.168.1.1 to network 0.0.0.0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 [254/0] via 192.168.1.1

Router#show ip int brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 192.168.1.46 YES DHCP up up

Serial0/0 unassigned YES TFTP administratively down down

FastEthernet0/1 192.168.2.1 YES manual up up

Serial0/1 unassigned YES TFTP administratively down down

Router#

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

So you are not confused I copied the config to an other 2600, just to prove the router was ok hence Ethernet0/0 and FastEthernet0/0

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Stewart

Because you are Natting on the router then the ASA should have a route back it doesn't look like a missing route on the firewall.

Just to clarify, the ASA has a DHCP pool int 192.168.1.0/24 subnet does it ?

If so can you exclude an address from that pool and manually assign it to the 2600 e0 interface.

Then try the ping again and post the output of a "sh ip nat translations" from the 2600 router after you have done it.

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I think a config will answer your questions better than me . thank you for your help...

ASA Version 7.2(3)
!
hostname power-plant
domain-name power-plant.com
enable password xxxxxxxxxx encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address 82.x.x.x 255.255.255.248
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
passwd xxxxxxxxxxx encrypted
ftp mode passive
dns server-group DefaultDNS
domain-name power-plant.com
object-group service srvgrp_dns tcp-udp
port-object eq domain
object-group service srvgrp_tcp tcp
port-object eq www
port-object eq ftp
port-object eq pop3
port-object eq ssh
port-object eq https
object-group icmp-type srvgrp_ping
icmp-object echo
icmp-object echo-reply
icmp-object time-exceeded
icmp-object unreachable
object-group service srvgrp_udp udp
port-object eq domain
access-list outside_in extended permit icmp any any object-group srvgrp_ping
access-list outside_in extended permit tcp any any object-group srvgrp_tcp
access-list outside_in extended permit udp any any object-group srvgrp_dns
access-list outside_in extended permit udp any any object-group srvgrp_udp
pager lines 45
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-523.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
route outside 0.0.0.0 0.0.0.0 82.x.x.x 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd dns 212.23.3.100 212.23.6.100
dhcpd ping_timeout 750
dhcpd domain power-plant.com
!
dhcpd address 192.168.1.2-192.168.1.127 inside
dhcpd enable inside
!

!
!
prompt hostname context
Cryptochecksum:6164cd9900911563a4a2aebddee37e4b
: end

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Stewart

Okay you are handing out addresses on the ASA. Can you simply change the following -

dhcpd address 192.168.1.2-192.168.1.127 inside

to

dhcpd address 192.168.1.3-192.168.1.127 inside

and then configure 192.168.1.2 on the e0 interface of your router.

Also does your 2600 need to hand out any 192.168.1.x addresses because if it doesn't then can you remove the DHCP pool configured on your 2600.

Then ping again from PC and post "sh ip nat translations"

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

Did the mods as said. I pinged from the pc to 192.168.1.1 and it worked, tried again and it did not work..

So I tried pining the internet and nothing returned...

so here is the command you gave me before with new results, and the config file...

All the best from Alan

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

Router#show ip int

Router#show ip interface br

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 192.168.1.2 YES manual up up

Serial0/0 unassigned YES TFTP administratively down down

FastEthernet0/1 192.168.2.1 YES manual up up

Serial0/1 unassigned YES TFTP administratively down down

version 12.2

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Router

!

!

memory-size iomem 10

ip subnet-zero

!

!

!

call rsvp-sync

!

!

!

!

!

!

!

!

interface FastEthernet0/0

ip address 192.168.1.2 255.255.255.0

ip nat outside

duplex auto

speed auto

!

interface Serial0/0

no ip address

shutdown

!

interface FastEthernet0/1

ip address 192.168.2.1 255.255.255.0

ip nat inside

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

!

ip nat inside source list 101 interface FastEthernet0/0 overload

ip classless

ip http server

!

access-list 101 permit ip 192.168.2.0 0.0.0.255 host 192.168.1.1 log-input

no cdp run

!

dial-peer cor custom

!

!

!

!

line con 0

exec-timeout 120 0

line aux 0

line vty 0 4

login

!

end

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I noticed now the DHCP is gone, there is no route so I added ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 is directly connected, FastEthernet0/0

I can ping 192.168.1.2 but not beyond that or to the asa gateway...

I hope this helps

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Hi Jon,

I noticed now the DHCP is gone, there is no route so I added ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 is directly connected, FastEthernet0/0

I can ping 192.168.1.2 but not beyond that or to the asa gateway...

I hope this helps

All the best from Alan

Alan

Can you change your default-route to

ip route 0.0.0.0 0.0.0.0 192.168.1.1

can you remove the "ip nat inside" from fa0/1

can you remove the "ip nat outside" from fa0/0

can you change your acl 101 back to

access-list 101 permit ip 192.168.2.0 0.0.0.255 any

can you add this to the ASA firewall -

route (inside) 192.168.2.0 255.255.255.0 192.168.1.2

Finally are you sure that nothing else could be getting the 192.168.1.2 address ie. could the ASA have handed this out to another device as well as the router.

Apologies for all the changes requests, i am just trying to get your config to a standard type setup.

Edit - and oh and apologies for keep calling you Stewart

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

Stop worring I am happy to change anything to get it working, and I learn from it as well double bonus, and dont worry about my name, my parents could not afford a second name for me, so I think I will be Alan Stewart Walker hows that..:)

Right I did the mods, the one for the ASA I had to change it, (inside) --> inside it did not like brackets

The rest was fine Jon..

All the best from Alan

Router#show ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 192.168.1.2 YES manual up up

Serial0/0 unassigned YES TFTP administratively down down

FastEthernet0/1 192.168.2.1 YES manual up up

Serial0/1 unassigned YES TFTP administratively down down

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is 192.168.1.1 to network 0.0.0.0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/1

S* 0.0.0.0/0 [1/0] via 192.168.1.1

!

version 12.2

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Router

!

!

memory-size iomem 10

ip subnet-zero

!

!

!

call rsvp-sync

!

!

!

!

!

!

!

!

interface FastEthernet0/0

ip address 192.168.1.2 255.255.255.0

duplex auto

speed auto

!

interface Serial0/0

no ip address

shutdown

!

interface FastEthernet0/1

ip address 192.168.2.1 255.255.255.0

duplex auto

speed auto

!

interface Serial0/1

no ip address

shutdown

!

ip nat inside source list 101 interface FastEthernet0/0 overload

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.1.1

ip http server

!

access-list 101 permit ip 192.168.2.0 0.0.0.255 any

no cdp run

!

dial-peer cor custom

!

!

!

!

line con 0

exec-timeout 120 0

line aux 0

line vty 0 4

login

!

end

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Alan

So is it working or not ?

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I forgot the important question, I use wireshark, and nothing is on 192.168.1.2, with the router switched of...

All the best from Alan

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I can ping 192.168.1.1 now all the time, but no further..

All the best from Alan

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

If I go into the router via the console, and ping google.com it comes back and says Translating "google.com" ...domain server

% Unrecognized host or address, or protocol not running..

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Hi Jon,

If I go into the router via the console, and ping google.com it comes back and says Translating "google.com" ...domain server

% Unrecognized host or address, or protocol not running..

All the best from Alan

Alan

This is because the router is no longer getting a DHCP address from the ASA together with DNS servers so it can't do DNS lookups. This isn't a problem once it's all working as normally routers don't access web pages.

What we will have to do is tell your 192.168.2.x PC what DNS servers to use, hence the reason at the moment i asked you to test with an IP address.

We can setup a DHCP pool for 192.168.2.x on your router when we get internet access working for IP addresses if you want. Note the DHCP pool we deleted was for 192.168.1.x and not 192.168.2.x so we are not just putting back what we deleted

Jon

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Hi Jon,

I can ping 192.168.1.1 now all the time, but no further..

All the best from Alan

Alan

Making progress

On your ASA I have just noticed you have an access-list outside_in but you haven't applied it to the outside interface ie.

ASA(config)# access-group outside_in in interface outside

Also when you ping make sure you ping something beyond the ASA and by IP not DNS name to start with. If you try to ping the outside IP of the ASA it won't work so try the next-hop from the ASA ie. the ISP router.

Also couple of other things -

1) can you edit your previous posts and where you have public IPs just leave the last octet ie. x.x.x.82 for your outside IP on the ASA and also the default-route on the ASA - best to keep those sort of things out of posts.

2) your access-list on the ASA is wide open so is this just a temporary acl to test with ?

Jon


Cisco are currently donating money to the Haiti earthquake appeal for every rating so please consider rating all helpful posts.

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I add the line on the ASA Mmmm dont like an open firewall

Ok I pinged an IP in Canada should be far enough away

and that was within the router it self, then did it for the PC and stiill nothing...

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Alan

Can you post "sh running-config xlate" or "sh xlate" from the ASA after you ping ?

Can you try pinging the ISP next-hop from the ASA ?

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon, this is getting interesting well for me it is..

All the best from Alan

18 in use, 956 most used
PAT Global x.x.x.82(15) Local 192.168.1.2 ICMP id 4792
PAT Global x.x.x.82(4512) Local 192.168.1.3(1026)
PAT Global x.x.x.82(14435) Local 192.168.1.3(3305)
PAT Global x.x.x.82(4511) Local 192.168.1.3(63826)
PAT Global x.x.x.82(14433) Local 192.168.1.3(3302)
PAT Global x.x.x.82(4510) Local 192.168.1.3(63591)
PAT Global x.x.x.82(14431) Local 192.168.1.3(3300)
PAT Global x.x.x.82(14430) Local 192.168.1.3(3298)
PAT Global x.x.x.82(14425) Local 192.168.1.3(3292)
PAT Global x.x.x.82(14424) Local 192.168.1.3(3291)
PAT Global x.x.x.82(14387) Local 192.168.1.3(3231)
PAT Global x.x.x.82(14050) Local 192.168.1.3(2643)
PAT Global x.x.x.82(14048) Local 192.168.1.3(2641)
PAT Global x.x.x.82(14047) Local 192.168.1.3(2640)
PAT Global x.x.x.82(4470) Local 192.168.1.3(21403)
PAT Global x.x.x.82(13731) Local 192.168.1.3(2051)
PAT Global x.x.x.82(11812) Local 192.168.1.3(3201)
PAT Global x.x.x.82(10305) Local 192.168.1.3(4527)
    I remembered

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Alan

Can you ping the address in Canada from the actual firewall itself - you may have to temporarily add this to your firewall -

icmp permit any outside

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

That ip was useless, looks like it does not except so I tried an other one, and have success from every where

well done so far...

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Hi Jon,

That ip was useless, looks like it does not except so I tried an other one, and have success from every where

well done so far...

All the best from Alan

So what else do we need to sort out ?

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

MM...can we do it so I can get to a website url is that possible please... then fix my security HOLE you found

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Hi Jon,

MM...can we do it so I can get to a website url is that possible please... then fix my security HOLE you found

All the best from Alan

From PC2 ?

Well you can either manually add the DNS servers (the ones configured under the DHCP pool on the ASA) or you can add a DHCP pool for 192.168.2.x network to the router with the same DNS servers as on the ASA. If you have many clients then probably best to setup DHCP pool on the router.

As for the firewall if you just want web access then remove the access-list from the interface ie.

ASA(config)# no access-group outside_in in interface

you don't need an acl to allow return traffic back in for stateful traffic such as http which is why you could access this forum even without the access-list applied. We only applied it for ping.

If you want ping access then rather than use an acl turn on ICMP inspection on the ASA firewall and then you won't need an acl on the outside. You will only need an acl on the outside interface if you start hosting servers that you want internet users to be able to access.

Jon

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Hi Jon,

I thank you very much, you put a lot of time into this and I am very happy, I have learnt a great deal of information, and looking at the views on this forum I think a few more people have gained some insite to....

Thank again Jon

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Alan

No problem, glad to have helped.

Jon

Cisco are currently donating money to the Haiti earthquake appeal for every rating so please consider rating all helpful posts.

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Good Morning Jon,

Sorry I am in trouble on the last part, cannot seem to get the browser to work with domain names...

"Well you can either manually add the DNS servers (the ones configured under the DHCP pool on the ASA) or you can add a DHCP pool for 192.168.2.x network to the router with the same DNS servers as on the ASA. If you have many clients then probably best to setup DHCP pool on the router."

Could I have the code for both methods please Jon.

All the best from Alan

Hall of Fame Super Blue

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

stewartrose wrote:

Good Morning Jon,

Sorry I am in trouble on the last part, cannot seem to get the browser to work with domain names...

"Well you can either manually add the DNS servers (the ones configured under the DHCP pool on the ASA) or you can add a DHCP pool for 192.168.2.x network to the router with the same DNS servers as on the ASA. If you have many clients then probably best to setup DHCP pool on the router."

Could I have the code for both methods please Jon.

All the best from Alan

Alan

Your ASA is handing out these DNS servers - 212.23.3.100 212.23.6.100

To add manually you go into the networking properties on the PC ie. where you set a static IP you can also specific DNS servers.

To do it via DHCP from the router -

ip dhcp excluded-address 192.168.2.1 192.168.1.10  <-- note you can exclude any IPs from the pool that you want to here
!
ip dhcp pool locallan
import all
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 212.23.3.100 212.23.6.100
!

Jon

If this works can you mark the post as solved as this helps others when searching for answers.

New Member

Re: Fixed ip(pc)--->(e1)2600(e0)-dhcp-->asa5505

Good Morning Jon,

Thank you for getting back to me, and I understand a ot more now, but do I need to change FastEthernet0/1 port to dhcp for the second option.

All the best from Alan

1018
Views
0
Helpful
57
Replies
CreatePlease login to create content