Ifconfig
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.
The biggest risk in life is not taking one.
Comments
-
lordy Member Posts: 632 ■■■■□□□□□□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
Regards,
LordyWorking on CCNP: [X] SWITCH --- [ ] ROUTE --- [ ] TSHOOT
Goal for 2014: RHCA
Goal for 2015: CCDP -
gravyjoe Member Posts: 260Thanks for the help. I woulda been there forever trying to figure it out.The biggest risk in life is not taking one.