06-19-2021 02:38 AM - edited 06-19-2021 04:07 AM
I can't connect to the Internet, my router is Cisco 881, I have an OpenWRT router connected to internet which has the local address 192.168.1.1 and distributes addresses with DHCP - he just working great. I connect in this way:
internet => openwrt => cisco881 => my computers
If I configure my cisco port 4 on DHCP (ip address dhcp) all works, i have internet, but I want to set static address on Cisco, for example 192.168.1.50. I set this
ip address 192.168.1.50 255.255.255.0
I have ping to the openwrt 192.168.1.1 but not outsidе - no 8.8.8.8, no www.google.com, nothing.
Router#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms Router#ping 8.8.8.8 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) Router#
Help me if you can?
interface FastEthernet4 ip address 192.168.1.50 255.255.255.0 ip nat outside ip virtual-reassembly in duplex auto speed auto ! interface Vlan1 ip address 192.168.11.1 255.255.255.0 ip nat inside ip virtual-reassembly in ! ip forward-protocol nd no ip http server no ip http secure-server ! ! ip nat inside source list 1 interface FastEthernet4 overload ! ! access-list 1 permit 192.168.11.0 0.0.0.255
Solved! Go to Solution.
06-19-2021 04:27 AM
you mean when you set as DHCP it works from the router you able to ping 8.8.8.8 ?
DHCP giving you Route - since you configuring static you need to add a static route (have you ? as per the config we did not see)
added route and test it.
ip route 0.0.0.0 0.0.0.0 192.168.1.1
06-19-2021 04:27 AM
you mean when you set as DHCP it works from the router you able to ping 8.8.8.8 ?
DHCP giving you Route - since you configuring static you need to add a static route (have you ? as per the config we did not see)
added route and test it.
ip route 0.0.0.0 0.0.0.0 192.168.1.1
06-19-2021 04:40 AM - edited 06-19-2021 04:40 AM
Thanks!
This is so simple , i spend 2 days reading manuals from cisco, they have all, but not these base things.
Thanks man!
06-19-2021 04:42 AM
Glad all good. It's all learning lessons all time.
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