Displaying Gateway I.P - Command?

Answered Question
Jan 8th, 2008
User Badges:

Hi,


When using DHCP on a cisco, how can I display the default gateway being received on the cisco?


Thx

Correct Answer by Edison Ortiz about 9 years 5 months ago

It should be listed on the show ip route


interface FastEthernet0/1

ip address dhcp

duplex auto

speed auto


sh ip int f0/1

FastEthernet0/1 is up, line protocol is up

Internet address is 192.168.1.1/24

Broadcast address is 255.255.255.255

Address determined by DHCP


sh ip route | i 0.0.0.0

Gateway of last resort is 192.168.1.254 to network 0.0.0.0


S* 0.0.0.0/0 [254/0] via 192.168.1.254


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Edison Ortiz Tue, 01/08/2008 - 11:46
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

It should be listed on the show ip route


interface FastEthernet0/1

ip address dhcp

duplex auto

speed auto


sh ip int f0/1

FastEthernet0/1 is up, line protocol is up

Internet address is 192.168.1.1/24

Broadcast address is 255.255.255.255

Address determined by DHCP


sh ip route | i 0.0.0.0

Gateway of last resort is 192.168.1.254 to network 0.0.0.0


S* 0.0.0.0/0 [254/0] via 192.168.1.254


Actions

This Discussion