Displaying Gateway I.P - Command?

Answered Question
Jan 8th, 2008

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 1 month 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

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