Ifconfig

gravyjoegravyjoe Posts: 260Member
this may be a stupid question, but when using the infconfig command, I don't see the default gateway like I do when I use ipconfig on windows. Maybe I'm just missing it or something. I see an IP address, subnet mask, and broadcast, but not the DG. icon_confused.gif
The biggest risk in life is not taking one.

Comments

  • lordylordy Posts: 632Member
    It's in fact not there.

    The default gateway is not an attribute of the interface but a part of the routing table and can therefore be checked with any of the following commands:

    route -n
    netstat -rn

    See the man pages of these commands for more information icon_wink.gif

    Regards,
    Lordy
    Working on CCNP: [X] SWITCH --- [ ] ROUTE --- [ ] TSHOOT
    Goal for 2014: RHCA
    Goal for 2015: CCDP
  • gravyjoegravyjoe Posts: 260Member
    Thanks for the help. I woulda been there forever trying to figure it out. icon_lol.gif
    The biggest risk in life is not taking one.
Sign In or Register to comment.