07-25-2022 05:11 AM
Hello good night, I am having the following problem, I have a router 2811 in my personal lab and I am trying to put this router connected directly to the isp and my connected machines in 2811.
ISP —> ROUTER 2811 —> PC
Well Router 2811 has port 0/0 configured to receive the isp and this working normal, I can drip the dns from google and even the isp gateway normally through the 2811, there port 0/1 is connected one of my machines and on this port a dhcp was made and it works fine the Pc can get the ip from dhcp normally, but the Pc can not access the isp, on the cmd I can drip the router normally and the router drips the normal Pc, but the Pc does not drip the isp and you don't even have internet access. I had done this before and it worked, but I must have forgotten something, I did some routes to see if it worked, but they didn't work, so please help me in this task. I'm going to send the show running here to you.
ip dhcp excluded-address 192.168.10.254 ! ip dhcp pool VIVO network 192.168.10.0 255.255.255.0 dns-server 8.8.8.8 default-router 192.168.10.254 ! ! no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! ! ! ! ! ! ! ! voice-card 0 ! crypto pki token default removal timeout 0 ! ! ! ! license udi pid CISCO2811 sn FTX1434AHWS ! redundancy ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address dhcp duplex auto speed auto ! interface FastEthernet0/1 ip address 192.168.10.254 255.255.255.0 duplex auto speed auto ! interface Serial0/0/0 no ip address shutdown no fair-queue clock rate 2000000 ! interface Serial0/0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/1/0 no ip address shutdown clock rate 2000000 ! interface Serial0/1/1 no ip address shutdown clock rate 2000000 ! ip forward-protocol nd no ip http server no ip http secure-server ! ! ip route 0.0.0.0 0.0.0.0 192.168.15.1 ! logging esm config ! ! ! ! ! ! control-plane !
07-25-2022 05:35 AM - edited 07-25-2022 05:35 AM
Hi,
1. use #ip routing command to enable routing
2. i assume your ISP connected interface as Fa0/0 and you have already received IP via DHCP to interface. check that using #sh ip int bri command and make sure ip is there.
3. check #sh ip route and verify your default route is available in routing table
4. check pining to 192.168.10.254 and make sure your PC can ping to gateway properly via LAN
07-25-2022 06:27 AM
Hello,
there are numerous issues with your configuration. What is the IP address you are getting through DHCP ? The easiest would be to configure the routet for NAT. Add the below to your router:
interface FastEthernet0/0
ip nat outside
interface FastEthernet0/1
ip nat inside
Ip nat inside source list 1 interface FastEthernet0/0 overload
access-list 1 permit 192.168.10.0 0.0.0.255
07-26-2022 03:56 AM
Just now i did lab, it is working perfectly
07-25-2022 08:54 AM - edited 07-25-2022 09:23 AM
sorry one colleague is mention this point.
No more addition
07-26-2022 12:09 AM
Hello
In addtion to NAT please change your default static route
no ip route 0.0.0.0 0.0.0.0 192.168.15.1
ip route 0.0.0.0 0.0.0.0 fa0/0 dhcp
07-26-2022 12:11 AM
Hello
In addtion to NAT please change your default static route
no ip route 0.0.0.0 0.0.0.0 192.168.15.1
ip route 0.0.0.0 0.0.0.0 fa0/0 dhcp
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide