02-16-2022 06:45 AM
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
Solved! Go to Solution.
02-16-2022 09:51 AM
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
02-16-2022 07:03 AM
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.
02-16-2022 07:35 AM
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
02-16-2022 07:48 AM
when I look at the interface I get this DHCP address from my moden 192.168.0.242
I have Telenet as internet provider
02-16-2022 08:30 AM
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.
02-16-2022 08:45 AM
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.
02-16-2022 09:12 AM
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
02-16-2022 09:45 AM
Or can you do one of the two when I prepare a Remote Desktop connection via Teamviewer can you configure the router for me ????????????????????????
02-16-2022 10:18 AM
Certainly a possibility ! What information do you need for me to log in ?
02-16-2022 10:25 AM
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
02-16-2022 09:51 AM
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
02-16-2022 10:16 AM
Hi can you configure the router for me I have never configured a router can you configure it via Teamviewer
02-16-2022 10:29 AM
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
02-16-2022 11:27 AM
Hello,
ok, I am ready to log in...
02-16-2022 11:28 AM
ok i'm ready
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