07-18-2018 02:23 AM - edited 03-21-2019 11:12 AM
Dear All
Today i have installed a new 1921 Cisco Router, i wanted to connect my isp modem to one of the gigabit port at the router, and then my pc to the other gigabit port.
i have configured my pc ip statically to be in the same range of the gigabit port 0/1
the isp modem port is in the same range of the gigabit port 0/0
the isp modem can not do dhcp service
the network is like this
PC (192.168.1.5) ==> router port 0/1 (192.168.1.1)
isp modem ( ip address:-10.141.54.104, subnet mask:-255.255.255.240 getaway:- 10.141.48.1 )==> router port 0/0 (i dont know)
Using 1541 out of 262136 bytes
!
! Last configuration change at 07:18:02 UTC Wed Jul 18 2018
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 25
!
ip dhcp excluded-address 192.168.1.1 255.255.255.0
!
ip dhcp pool Eagle-pool
import all
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 213.55.96.166
domain-name Eagle.lan
!
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
cts logging verbose
!
license udi pid CISCO1921/K9 sn FGL211522EF
!
redundancy
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 10.141.54.105 255.255.240.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
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 forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 10.141.48.1
ip route 0.0.0.0 0.0.0.0 10.141.54.104
!
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
!
control-plane
!
end
Please Help
Thanks!
Solved! Go to Solution.
07-30-2018 03:22 AM
That doesn't much much sense that 10.141.54.104 works and .105 won't. It's the same subnet.
Anyhow, if the ISP gave you the .105, then I'd talk to them about it.
Also I noticed a mistake in your configuration. The access list for NAT is incorrect, it should be 100 and not 1:
!
ip nat inside source list 100 interface GigabitEthernet0/0 overload
!
That and remove the "ip route 0.0.0.0 0.0.0.0 10.141.54.104" if 10.141.54.1 is the proper gateway.
Hope this helps.
07-24-2018 04:13 AM
If you connect your PC directly to the ISP modem and give it the 10.141.54.105 255.255.240.0 IP with the gateway being 10.141.48.1 or 10.141.54.104, does it have Internet access? (Make sure you also configure the DNS server).
Thanks
07-29-2018 11:38 PM
sorry for to late to respond, no sir it don't work but work like this like picture.
07-30-2018 03:22 AM
That doesn't much much sense that 10.141.54.104 works and .105 won't. It's the same subnet.
Anyhow, if the ISP gave you the .105, then I'd talk to them about it.
Also I noticed a mistake in your configuration. The access list for NAT is incorrect, it should be 100 and not 1:
!
ip nat inside source list 100 interface GigabitEthernet0/0 overload
!
That and remove the "ip route 0.0.0.0 0.0.0.0 10.141.54.104" if 10.141.54.1 is the proper gateway.
Hope this helps.
07-31-2018 03:43 AM
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 10.141.54.104 255.255.240.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
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 forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 100 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 10.141.48.1
!
!
!
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
!
control-plane
!
!
Thanks sir everything is worked but,
1.when power goes and come back, the "no shutdown" command disabled it self every time.
2. and then first i can ping from my pc to getaway ip and google.com now i cant.
first everything's worked then when power goes and come nothings working the configuration is stile there. WHY help please
THANkS.
07-31-2018 03:50 AM
Hello,
Glad to hear things are working.
After you made the changes and got it working did you do a "wr mem"?
Can you post the output of "sh ver"?
After the power outage, could the router ping 10.141.54.1, was the interface up?
Thanks
07-31-2018 03:58 AM
yes i did save the config "copy run start" or "wr mem" but when the power goes and come the interface wont start itsel unti i do "no shut" command to each interface.
here "sh ver"
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.4(3)M3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Fri 05-Jun-15 12:31 by prod_rel_team
ROM: System Bootstrap, Version 15.0(1r)M16, RELEASE SOFTWARE (fc1)
Router uptime is 31 minutes
System returned to ROM by power-on
System image file is "usbflash0:c1900-universalk9-mz.SPA.154-3.M3.bin"
Last reload type: Normal Reload
Last reload reason: power-on
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco CISCO1921/K9 (revision 1.0) with 446464K/77824K bytes of memory.
Processor board ID FGL211522EF
2 Gigabit Ethernet interfaces
1 terminal line
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
245744K bytes of USB Flash usbflash0 (Read/Write)
Technology Package License Information for Module:'c1900'
------------------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------
ipbase ipbasek9 Permanent ipbasek9
security None None None
data None None None
NtwkEss None None None
Configuration register is 0x2142
Thanks
07-31-2018 04:15 AM
Change the configuration register to 0x2102, then do a "wr mem", then try reloading or power cycling the router and then see if the interfaces come back without having to no shut them.
Regards
07-31-2018 05:23 AM
How can i change that, i don't no the commands, give me some idea
Thanks Sir
07-31-2018 05:32 AM
!
conf t
!
config-register 0x2102
!
end
!
wr mem
!
07-31-2018 05:50 AM
Very very Thanks sir for your time and sharing ideas.
Everything is working now on my pc.
but i want to connected to switch, switch model- "sf300-48pp 48 port managed switch"
the switch needs configuration?
Thanks sir.
07-31-2018 06:39 AM
So you want to connect the router to the switch and your PC to the switch. Correct?
I'm not familiar with the SF300s, but if you are only using a single subnet (192.168.1.0/24), then out of the box the SF300 may work for you. I don't think you'll need a crossover cable from the switch to the router as the router has a Gig interface. Suggest just connecting everything and see if it works.
08-01-2018 02:33 AM
i did that, but it don't work
but i plug my pc to switch and i give the pc ip 192.168.1.3 255.255.255.0 getaway 192.168.1.1 and dns server 213.55.96.166 it works, i think the switch needs dns ip and getaway ip
Thanks
08-01-2018 12:19 PM
So if you give your PC a static IP and it works, but not with DHCP, you probably need to enable "spanning-tree portfast" on the switch ports. As stated earlier, I'm not familiar with that particular switch but the documentation should provide the answer.
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