cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3755
Views
0
Helpful
38
Replies

Cisco 2921 configure router for internet access

christiaanh2
Level 1
Level 1

Hi everyone I have a Cisco router 2921 with iOS 15 I want to configure this router for internet access at g0/0 you have to use the command int g0/0 dhcp I used that command and then my moden automatically gives an ip address but for the other Interface I don't know what ip address to add I have now connected my computer directly to the modem and then I get this information when I enter ipconfig at CMD Connection-specific DNS Suffix . : home
IPv6 Address 2a02:1810:a412:be00:9922:de3d:936:1ab8
Temporary IPv6 Address 2a02:1810:a412:be00:18b7:fef5:3374:d786
Link-local IPv6 Address fe80::9922:de3d:936:1ab8%16
IPv4 Address 192.168.0.189
Subnet Mask 255.255.255.0
Default Gateway fe80::6802:b8ff:fe86:246%16
192.168.0.1 

 

does anyone know what ip address i should add to interface g0/2

1 Accepted Solution

Accepted Solutions

Hello,

 

basically, this is what the configuration should look like:

 

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
interface GigabitEthernet0/0
description Uplink to ISP Router
ip address dhcp
ip nat outside
!
interface GigabitEthernet0/2
description Downlink to HP ProCurve
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 dhcp
!
access-list 1 permit 192.168.1.0 0.0.0.255

View solution in original post

38 Replies 38

balaji.bandi
Hall of Fame
Hall of Fame

Most of the time Router connect to ISP, and your Lan device connect to Switch so below connection looks like

 

ISP--router---Switch--PC

 

is this what you looking to setup ?

 

or you looking to use same router for only 1 device your PC ?

 

ISP-Router--PC ?

 

either case, post show run from router so we can suggest best.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

from g0/2 go to a HP procurve 2810-g24 j9021a 

 

I used the command show run and then I get this at interface interface GigabitEthernet0/0
ip address dhcp
duplex auto
speed auto

 

 

 

when I look at the interface I get this DHCP address from my moden 192.168.0.242 

 

I have Telenet as internet provider

I believe that your main question at this point is what address to put on your router other interface. Since G0/0 is using 192.168.0.0 you can not use that network. But you could use any other network. To make it simple I would suggest using 192.168.1.1/24 on the router interface. Then devices connected to your switch could use addresses in that network.

There are a few other things that you will need  to do:

- you should configure a default route. I would suggest using 

ip route 0.0.0.0 0.0.0.0 dhcp

- you should configure address translation so that the devices connected to your inside network get translated to the network that your ISP knows as your network.

HTH

Rick

post show run, we are not still clear what is configured, we can assume and give you some random command, that does not help you as per my understanding here.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Okay what do you need to know Is it possible that you can also give me instructions on what to set up on the Cisco router I've never done that before I just want to configure the router correctly from the first time

Or can you do one of the two when I prepare a Remote Desktop connection via Teamviewer can you configure the router for me ???????????????????????? 

Certainly a possibility ! What information do you need for me to log in ?

the router is currently not configured with a password I have Teamviewer installed on my Windows computer when you're ready I can send it to you I'm from Belgium My English is pretty good I'll translate via Google Translator 

Hello,

 

basically, this is what the configuration should look like:

 

ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
interface GigabitEthernet0/0
description Uplink to ISP Router
ip address dhcp
ip nat outside
!
interface GigabitEthernet0/2
description Downlink to HP ProCurve
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 dhcp
!
access-list 1 permit 192.168.1.0 0.0.0.255

Hi can you configure the router for me I have never configured a router can you configure it via Teamviewer

855 490 652 

g9mas1y1 

 

these are the login details of my Teamviewer when you are ready just log in I will also open the notepad so that you can let me know when you are there

Hello,

 

ok, I am ready to log in...

ok i'm ready