09-27-2017 04:14 AM - edited 03-21-2019 10:56 AM
First of all, i'm completely new to cisco routers. I'm trying to configure Cisco 892 FSP-K9, followed few tutorials, forums but with no success. Pc connected through G0 - G7 can't get any IP address.
Router has 2 Wan ports connected to 2 different ISPs, both works correct, i can ping/traceroute any site from console, so i'm sure that router has internet access. Yesterday somehow I managed to configure device so PC leased IP from DHCP, but still couldnt get internet access.
I managed also Cisco CP Express 3.5- didnt change anything, just caused more problems, marked g9 as primary Wan caused this interface couldnt get IP from ISP anymore.
This morning tired of this, I reset device to factory default settings. Any suggestions what could be wrong? Or can anyone guide me step-by step?
Solved! Go to Solution.
09-27-2017 05:39 AM
Hi there,
it is best practive not to use VLAN1 for user traffic, but for now we can leave it alone.
Add the following to get DHCP working:
! ip dhcp pool DHCP_VLAN1 network 192.168.1.0 255.255.255.0 dns-server 8.8.8.8 default-router 192.168.1.1 ! ip dhcp excluded-address 192.168.1.1 !
With the router connected to your ISP and pings from the router working to the internet, what is the output of:
sh ip route
sh ip nat stats
09-27-2017 04:57 AM
Hi there,
Sounds like you didn't have NAT configured.
If you could share your running config, we can get it working for you. :)
cheers,
Seb.
09-27-2017 05:19 AM
09-27-2017 05:39 AM
Hi there,
it is best practive not to use VLAN1 for user traffic, but for now we can leave it alone.
Add the following to get DHCP working:
! ip dhcp pool DHCP_VLAN1 network 192.168.1.0 255.255.255.0 dns-server 8.8.8.8 default-router 192.168.1.1 ! ip dhcp excluded-address 192.168.1.1 !
With the router connected to your ISP and pings from the router working to the internet, what is the output of:
sh ip route
sh ip nat stats
09-27-2017 06:08 AM - edited 09-27-2017 06:27 AM
output of sh ip route
Gateway of last resort is xx.xx.109.225 to network 0.0.0.0 S* 0.0.0.0/0 [254/0] via 185.59.109.225 xx.xx.0.0/16 is variably subnetted, 2 subnets, 2 masks C xx.xx.109.224/27 is directly connected, GigabitEthernet9 L xx.xx.109.228/32 is directly connected, GigabitEthernet9
output of sh ip nat stat
Total active translations: 0 (0 static, 0 dynamic; 0 extended) Peak translations: 0 Outside interfaces: GigabitEthernet9 Inside interfaces: Vlan1 Hits: 0 Misses: 0 CEF Translated packets: 0, CEF Punted packets: 0 Expired translations: 0 Dynamic mappings: -- Inside Source [Id: 1] access-list 10 interface GigabitEthernet8 refcount 0 Total doors: 0 Appl doors: 0 Normal doors: 0 Queued Packets: 0
09-27-2017 06:37 AM
Ah you have a typo in your NAT statement, remove the exising one and change it to this:
! ip nat inside source list 10 interface GigabitEthernet9 overload !
cheers,
Seb.
09-27-2017 06:52 AM - edited 09-27-2017 06:52 AM
Nat statement removed and replaced with correct one u provided, but pc (which is directly plugged to router) still doesn't get IP from router.
I'm just curious about line
interface GigabitEthernet0 no ip address
is it ok? this's a LAN port which PC is connected to,
09-27-2017 06:53 AM
Try:
! int gi0 switchport mode access spanning-tree portfast !
Since you are using VLAN1 there is no need to specify it.
09-27-2017 07:03 AM
Did that what you wrote, but PC still doesnt get IP from DHCP.
result of sh ip int
GigabitEthernet0 is up , line protocol is up Internet protocol processing disabled
09-27-2017 07:09 AM
What's the output for
sh mac-address
sh ip dhcp pool
sh ip dhcp server statistics
09-27-2017 07:17 AM
sh mac-address
Destination Address Address Type VLAN Destination Port ------------------- ------------ ---- ----------------- 3890.a59e.e9c8 Self 1 Vlan1 0025.64d9.2968 Dynamic 1 GigabitEthernet0
sh ip dhcp pool
Pool DHCP_VLAN1 network 192.168.1.0 255.255.255.0 : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 0 Leased addresses : 0 Pending event : none 0 subnet is currently in the pool
sh ip dhcp server statistics
Memory usage 23789 Address pools 1 Database agents 0 Automatic bindings 0 Manual bindings 0 Expired bindings 0 Malformed messages 0 Secure arp entries 0 Message Received BOOTREQUEST 0 DHCPDISCOVER 208 DHCPREQUEST 5 DHCPDECLINE 0 DHCPRELEASE 0 DHCPINFORM 2 Message Sent BOOTREPLY 0 DHCPOFFER 0 DHCPACK 0 DHCPNAK 3
09-27-2017 07:40 AM
That's strange. Your DHCP pool has 0 free addresses and doesn't appear to be attached to the VLAN1 subnet.
What version of IOS are you running?
09-27-2017 07:46 AM
i believe that's it:
Cisco IOS Software, C800 Software (C800-UNIVERSALK9-M), Version 15.5(3)M4a, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Thu 06-Oct-16 14:23 by prod_rel_team ROM: System Bootstrap, Version 15.2(3r)XC, RELEASE SOFTWARE (fc1)
09-27-2017 07:45 AM
As a sanity check, try adding the domain option to the pool:
! ip dhcp pool DHCP_VLAN1 domain-name example.com !
09-27-2017 08:08 AM
Did it, but still .. it doesnt solve issue - PC si not getting IP from DHCP.
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