Eihab Haddad
asked on
my Cisco router 881 does not provide ip address
my Cisco router 881 does not provide ip address to ports thru vlan after configuring the DHCP pool
when i made the configuration at first time it was working after erase it stopped. if ip assigned manually to pc it works.
when i made the configuration at first time it was working after erase it stopped. if ip assigned manually to pc it works.
can you please simply upload the current configuration for review?
ASKER
ASKER
Router>shorun
Translating "shorun"...domain server (192.168.0.1)
% Bad IP address or host name
% Unknown command or computer name, or unable to find computer address
Router>en
Router#show run
Building configuration...
Current configuration : 1139 bytes
!
! Last configuration change at 06:49:20 UTC Wed Feb 6 2036
version 15.2
no service pad
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 10
!
!
!
!
!
ip dhcp excluded-address 192.168.2.1 192.168.2.10
!
ip dhcp pool Lan
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.0.1 92.168.0.1
!
ip dhcp pool bab
network 192.168.3.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.0.1
!
!
!
ip cef
no ipv6 cef
!
!
license udi pid CISCO881-K9 sn FCZ172190W1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
ip address dhcp
duplex auto
speed auto
!
interface Vlan1
ip address 192.168.2.1 255.255.255.0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
line con 0
no modem enable
line aux 0
line vty 0 4
login
transport input all
!
!
end
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
router.txt
Translating "shorun"...domain server (192.168.0.1)
% Bad IP address or host name
% Unknown command or computer name, or unable to find computer address
Router>en
Router#show run
Building configuration...
Current configuration : 1139 bytes
!
! Last configuration change at 06:49:20 UTC Wed Feb 6 2036
version 15.2
no service pad
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 10
!
!
!
!
!
ip dhcp excluded-address 192.168.2.1 192.168.2.10
!
ip dhcp pool Lan
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.0.1 92.168.0.1
!
ip dhcp pool bab
network 192.168.3.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.0.1
!
!
!
ip cef
no ipv6 cef
!
!
license udi pid CISCO881-K9 sn FCZ172190W1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
ip address dhcp
duplex auto
speed auto
!
interface Vlan1
ip address 192.168.2.1 255.255.255.0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
line con 0
no modem enable
line aux 0
line vty 0 4
login
transport input all
!
!
end
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
Router#
router.txt
DHCP configuration of pool "Lan" looks good.
Hosts should not be having problem getting IP address when attached to ports fa0 - fa3. Fa4 is WAN interface and it is configured as DHCP client.
Hosts should not be having problem getting IP address when attached to ports fa0 - fa3. Fa4 is WAN interface and it is configured as DHCP client.
ASKER
Thanx Mr.Predrag. but the problem still existing
To speed up ip address assignment to hosts you can issue:
interface range fa0 - 3
spanning-tree portfast
Otherwise host need to wait for 30 seconds until interface is moved to forwarding state.
Can you paste output from commands (with dhcp client host attached):
sh int status
sh ip int brief
sh ip dhcp bind
Configuration of dhcp pool is correct, something else should be issue (please, delete pool bab if it is not needed).
interface range fa0 - 3
spanning-tree portfast
Otherwise host need to wait for 30 seconds until interface is moved to forwarding state.
Can you paste output from commands (with dhcp client host attached):
sh int status
sh ip int brief
sh ip dhcp bind
Configuration of dhcp pool is correct, something else should be issue (please, delete pool bab if it is not needed).
ASKER
Router>en
Router#show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 notconnect 1 auto auto 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset down down
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual down down
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
Cli-881-router-prog--.txt
Router#show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 notconnect 1 auto auto 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset down down
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual down down
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
Cli-881-router-prog--.txt
Status of all interfaces assign to VLAN 1 is not connected - all interfaces down like host is not connected at all.
That's the reason why SVI for VLAN 1 is down down.
You can move SVI to up up state with command
interface vlan 1
no autostate
But that still does not resolve host interface is not moved to status connected.
That's the reason why SVI for VLAN 1 is down down.
You can move SVI to up up state with command
interface vlan 1
no autostate
But that still does not resolve host interface is not moved to status connected.
ASKER
FastEthernet1 unassigned YES unset down down
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual down down
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
*Feb 6 10:40:51.818: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to up
*Feb 6 10:40:52.818: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1, changed state to up
Router#show int status
*Feb 6 10:41:20.838: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#
Router#show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset up up
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual up up
Router#show dhcp bind
^
% Invalid input detected at '^' marker.
Router#
show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset up up
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual up up
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
Cli-881-router-prog--.txt
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual down down
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
*Feb 6 10:40:51.818: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to up
*Feb 6 10:40:52.818: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1, changed state to up
Router#show int status
*Feb 6 10:41:20.838: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#
Router#show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset up up
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual up up
Router#show dhcp bind
^
% Invalid input detected at '^' marker.
Router#
show int status
Port Name Status Vlan Duplex Speed Type
Fa0 notconnect 1 auto auto 10/100BaseTX
Fa1 connected 1 a-half a-10 10/100BaseTX
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Router#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES unset down down
FastEthernet1 unassigned YES unset up up
FastEthernet2 unassigned YES unset down down
FastEthernet3 unassigned YES unset down down
FastEthernet4 192.168.0.106 YES DHCP up up
Vlan1 192.168.2.1 YES manual up up
Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
Router#
Cli-881-router-prog--.txt
ASKER
Sorry I posted too much . In Last post vlan status is up but still have the same problem.
ASKER
Fa1 is connected, vlan status is up.
What is device?
I am asking since speed is a-10 and duplex is a-half (typical for PC in standby).
Some devices are trying to get IP address when they are booting up. Since stp portfast is not issued on ports device may give up before it gets ip address (30 seconds timeout until interface is moved to forwarding state). If it is not PC maybe device requires speed and duplex manual configuration (or disabling of mdix auto).
If nothing else helps, try to reload router
I am asking since speed is a-10 and duplex is a-half (typical for PC in standby).
Some devices are trying to get IP address when they are booting up. Since stp portfast is not issued on ports device may give up before it gets ip address (30 seconds timeout until interface is moved to forwarding state). If it is not PC maybe device requires speed and duplex manual configuration (or disabling of mdix auto).
If nothing else helps, try to reload router
reload
yes
and check after reboot if everything is OK
ASKER
It's a pc and also I connected my lap top .I reloaded the router formatted it and made new conf .but still the same. After reloading there is a new msg .
(Error opening tftp//255.255.255255/cisco net.cfg (timed out)
And the same msg with end of (router-config)
(Ciscortr.cfg)
And the same error msg with end of (nerwork-config).
(Error opening tftp//255.255.255255/cisco
And the same msg with end of (router-config)
(Ciscortr.cfg)
And the same error msg with end of (nerwork-config).
Formated it?
Which means killed IOS image and license.
Which means killed IOS image and license.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll do it .I'm a beginner but I'll do what I can to solve the problem.
I'll inform you by the update .
Thanx a lot Mr.Predrag for helping. You're the best
I'll inform you by the update .
Thanx a lot Mr.Predrag for helping. You're the best
Never format flash on switches and routers if you did not backup all that you need first (or you have no choice).
Also, typically, if you format device that is still operational you want to copy all devices back to flash after formatting (while running configuration is still operational). When rebooted and IOS is not on flash device will enter ROMMON, and commands are different so it can be a little tricky... But, sure... router can be recovered to operational state.
You're welcome.
Also, typically, if you format device that is still operational you want to copy all devices back to flash after formatting (while running configuration is still operational). When rebooted and IOS is not on flash device will enter ROMMON, and commands are different so it can be a little tricky... But, sure... router can be recovered to operational state.
You're welcome.
ASKER
Thanx a lot ✋