cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8752
Views
0
Helpful
72
Replies

Routing to the internet

wilsonleonardy
Level 1
Level 1

Hi, I'm new to Cisco router.

I've been asked to create a network for a hotel internet service.

I'm currently configuring Cisco 1941 (non-wireless), and I've been stuck for a while now.

So, I have 2 network

192.168.0.* (ethernet0/0) and 192.168.1.* (ethernet0/1)

i connect my modem to ethernet0/0 and the client switch to ethernet0/1

I manage to ping the modem from a client, and it's working great.

the problem is i couldn't get through the internet.

is there any configuration that i missed?

and also, is it possible to manage the bandwidth to the client?

Thanks.

72 Replies 72

okay.

so on the modem, i should put the command to route the traffic to 192.168.0.2, right?

Based on what you have provided yes.  But just for the 192.168.0.0/16 network

wilsonleonardy
Level 1
Level 1

I've done what u said, but still unable to connect to the internet through gigabitethernet0/1 interface.

I have just a normal adsl modem/router with a local ip 192.168.0.1 connected to the cisco1941/k9 gigabitethernet 0/0 with ip 192.168.0.3

then id like to share the internet connection through to the client using the gigabitethernet0/1 interface on the cisco router.

i set the ip address of the g0/1 to 192.168.1.1.

Having established the basic network, i was able to ping from a client (192.168.1.2) to the adsl modem router (192.168.0.1), however the internet connection does not get routed to the 192.168.1.2.

I'm assuming that i've done the ip routing correctly, but something mustve gone wrong when i set up the NAT.

Also, i want to attach a wireless access point to the g0/1 interface using a switch. do i need to set up a new static routing for that?

Here's the specific extract of my setting from show config:

interface GigabitEthernet0/0

ip address 192.168.0.3 255.255.255.0

ip nat outside

ip virtual-reassembly in

duplex auto

speed auto

no mop enabled

!

interface GigabitEthernet0/1

ip address 192.168.1.1 255.255.255.0

ip nat inside

ip virtual-reassembly in

duplex auto

speed auto

ip nat pool Guests 192.168.0.2 192.168.0.2 netmask 255.255.255.0

ip nat inside source list 7 pool Guests

ip route 192.168.1.0 255.255.255.0 192.168.0.1

!

access-list 7 permit 192.168.1.0 0.0.0.255

First and foremost... the IP address applied on your WAN port ... is it a public IP?

Secondly, before you configure the any natting or routing.. simply ping any ip address on the internet and check whether ur reachable to that IP address from your router. Say for example : ping 4.2.2.2

Regards,

Talha

Talha Ansari,

I don't have a WAN interface on my Cisco 1941/k9, I only have the gigabitethernet 0/0 and gigabitethernet 0/1, i want to connect the Cisco router to another adsl modem/router that connects to the internet. So no, none of the IP address applied on any of the ciscos interfaces are public IP, they are all local

so if you apply only ip addresses on the interface ... then r u able to ping 4.2.2.2 from your router?

Hi,

if you are already connected to a modem/router then you don't need to do NAT on your 1941, just let the modem/router do it for you.

But on the modem/router you need a route for 192.168.1.0/24 network and on the 1941 a static default route pointing to modem interface ip address: ip route 0.0.0.0 0.0.0.0 192.168.0.1

You can also get rid of this static route: ip route 192.168.1.0 255.255.255.0 192.168.0.1 because you don't need it here as these interfaces are directly connected to your router.

Regards.

Alain

Don't forget to rate helpful posts.

Hi Wilson,

have you found out that your modem/router does a NAT translation?

if yes, please remove from your interface configuration on the 1941 the "ip nat input" and "ip nat output"  commands.

then you still need the "ip route 0.0.0.0 0.0.0.0 192.168.0.1" on your router.

cadet alain and Konstantin Dunaev,

I'm not too sure if my modem/router does a NAT translationm just FYI, i'm using a D-LINK DSL 2740B modem/router to connect to the internet. I can't seem to find any NAT related settings in the setting page.

The options are Port Forwarding, Port Trigering, DNS, Dynamic DNS, SNMP Setup, Static Routing, Default Gateway Routing, RIP Routing

Although i could try to establish a static route to the 192.168.1.0 network from the modem

On a side note, could it be possible that my current problem has something to do with me not using AUX interface to connect to the adsl modem/router ?

you modem/router does support NAT translation for sure. You should connect the router to  the modem's LAN interface.

are you able to reach Internet directly from your router? e.g. ping 8.8.8.8

In such scenario I would suggest you to connect a pc/laptop directly to the modem. Set its ip address to automatic from DHCP. Check whether you get the IP address on the PC. Confirm whether you can reach internet from ur pc.

Hi,

It is doing NAT because this is a soho modem/router and you use a private ip address on the LAN and a public on the WAN so it has to do NAT.

Just do the default static on the 1941 and the static route to 192.168.1.0/24 on the modem/router and it should work.

Alain.

Don't forget to rate helpful posts.

Using 1488 out of 262136 bytes

!

! Last configuration change at 17:29:39 UTC Mon Nov 7 2011

!

version 15.1

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname xxxxxx

!

boot-start-marker

boot-end-marker

!

!

enable secret 5 $1$qSkP$RaAzZCkUBcimthT07A7OO0

enable password xxxxxxx

!

no aaa new-model

!

no ipv6 cef

ip source-route

ip cef

!

!

!

ip dhcp excluded-address 192.168.0.1 192.168.0.10

ip dhcp excluded-address 192.168.1.1 192.168.1.5

!

ip dhcp pool Guests

   network 192.168.1.0 255.255.255.0

   domain-name Guests

   dns-server 192.168.1.1

   netbios-name-server 192.168.1.1

   default-router 192.168.1.1

!

!

multilink bundle-name authenticated

!

crypto pki token default removal timeout 0

!

!

license udi pid CISCO1941/K9 sn FGL1532291Z

!

!

!

!

!

!

!

!

interface GigabitEthernet0/0

ip address 192.168.0.2 255.255.255.0

ip virtual-reassembly in

duplex auto

speed auto

no mop enabled

!

interface GigabitEthernet0/1

ip address 192.168.1.1 255.255.255.0

ip virtual-reassembly in

duplex auto

speed auto

!

ip forward-protocol nd

!

no ip http server

no ip http secure-server

!

ip nat pool Guests 192.168.0.2 192.168.0.2 netmask 255.255.255.0

ip nat inside source list 7 interface GigabitEthernet0/0 overload

ip route 0.0.0.0 0.0.0.0 192.168.0.1

!

access-list 7 permit 192.168.1.0 0.0.0.255

!

!

!

control-plane

!

!

!

line con 0

line aux 0

line vty 0 4

password 101289dl

login

transport input all

!

scheduler allocate 20000 1000

end

This is my current configuration, so far nothing has worked, i cant ping to internet from the router

Hi,

Can you verify the dynamic NAT translations were cleared from the router with sh ip nat trans and if not then issue clear ip nat  trans * and then try this:

-ping the public address from the modem/router from the 1941: ping x.x.x.x source int g0/1

Is it working? if so then ping 8.8.8.8 source int g0/1, is it working?

Alain.

Don't forget to rate helpful posts.

cadet alain,

Thanks for the advice, but unfortunately no, it still doesnt work. i tried pinging 1to 8.8.8.8 from either g0/0 and g0/1 but none of it works,

in fact, now even pinging to 192.168.0.1 (the modem router) from the 1941 doesnt work. it worked before, i dont know where it went wrong.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card