cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
74038
Views
30
Helpful
7
Replies

how to show the default gateway

ippolito
Level 1
Level 1

I configured an AP to use dhcp, now I want to use the CLI to show which default gateway it picked up.  "Show ip route" doesn't seem to be in its vocabulary.  Does anyone know the correct statement?  Also - for the AP to use dhcp to pick up the default gateway, is the absense of an explicit "ip default-gateway" statement all that is required?

Thanks,

Mike

1 Accepted Solution

Accepted Solutions

Saravanan Lakshmanan
Cisco Employee
Cisco Employee

To see AP ip info:-

capwap_1131#show dhcp lease

Temp IP addr: 10.0.0.12  for peer on Interface: FastEthernet0

Temp  sub net mask: 255.255.255.0

   DHCP Lease server: 10.0.0.1, state: 3 Bound

   DHCP transaction id: 157A

   Lease: 86400 secs,  Renewal: 43200 secs,  Rebind: 75600 secs

Temp default-gateway addr: 10.0.0.254

   Next timer fires after: 05:46:14

   Retry count: 0   Client-ID: 001c.58dc.xxxx

   Client-ID hex dump: 001C58DCxxxx

   Hostname: capwap_1131

Statically configure AP's default gateway ip on capwap AP:-

capwap_1131#debug capwap console cli

capwap_1131#capwap ap ip default-gateway

View solution in original post

7 Replies 7

Scott Fella
Hall of Fame
Hall of Fame

Mike,

What are you using for a dhcp server? You have to specify the default gateway on the dhcp scope. You can also run a debug dhcp and see what default gateway the ap obtains from the dhcp scope setting.

Sent from Cisco Technical Support iPhone App

-Scott
*** Please rate helpful posts ***

Thanks for the reply, the dhcp server is correctly handing out a default gateway, as I can ping devices on other subnets.  What I'm really after is:  what is the command to show the ip address of the default gateway that the dhcp server is handing out.  I.e., what is the equivalent of "ipconfig" on windows, "route" on linux, or "show ip route" on virtually other cisco devices?  I find it hard to believe you'd have to do a debug to see it.

Thanks,

Mike

daviwatk
Level 3
Level 3

Seems like this is a lightweight AP.  You can verify this using...

show run | inc default-gateway

Scott Fella
Hall of Fame
Hall of Fame

Well if it's lightweight, then try to telnet, ssh or console and issue a debug ap command "show ip route". Or you can do a debug capwap console cli which then will allow you to do some ios commands.

Sent from Cisco Technical Support iPhone App

-Scott
*** Please rate helpful posts ***

Saravanan Lakshmanan
Cisco Employee
Cisco Employee

To see AP ip info:-

capwap_1131#show dhcp lease

Temp IP addr: 10.0.0.12  for peer on Interface: FastEthernet0

Temp  sub net mask: 255.255.255.0

   DHCP Lease server: 10.0.0.1, state: 3 Bound

   DHCP transaction id: 157A

   Lease: 86400 secs,  Renewal: 43200 secs,  Rebind: 75600 secs

Temp default-gateway addr: 10.0.0.254

   Next timer fires after: 05:46:14

   Retry count: 0   Client-ID: 001c.58dc.xxxx

   Client-ID hex dump: 001C58DCxxxx

   Hostname: capwap_1131

Statically configure AP's default gateway ip on capwap AP:-

capwap_1131#debug capwap console cli

capwap_1131#capwap ap ip default-gateway

maldehne
Cisco Employee
Cisco Employee

show ip redirects

will do it mate.

---------------------------------------------------------------------------------------

Please Don't forget to rate correct answer

ippolito
Level 1
Level 1

Saravanan,

That's exactly what I was looking for - thank you very much!

Mike

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card