linux下查看网卡地址和网关

linux下查看网卡地址和网关

1、查看网卡地址的命令:ifconfig

2、查看dns的命令:route -n (destination Genmask都是0.0.0.0的那个) 

你可能感兴趣的:(linux,linux)