linux下查看网卡地址和网关 1、查看网卡地址的命令:ifconfig 2、查看dns的命令:route -n (destination Genmask都是0.0.0.0的那个) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/64992/showart_1010259.html
先看网卡接口名 air01(root)# ifconfig -a lo0: flags=1000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 eri0: flags=1000843 mtu 1500 index 2 inet 10.248.1.9 netmask ffffff00 broadcast 10.248.1.255 ether 0:14:4f:f:9a:4e 好了,接口名是eri0 ,我们来看其状态 air01(root)# ndd -get /dev/eri link_mode (1为全双工 ,0为半双工) 1 air01(root)# ndd -get /dev/eri link_speed (1为100M,...
有一台服务器, 按照说明书和外观判断应该是有两块网卡, 但是系统只显示了1块网卡 ifcongfig eth1 up显示找不到eth1 /etc/sysconfig/network-scripts/下只有ifcfg-eth0和ifcfg-lo 有什么办法可以在linux操作系统下查看有关网卡的硬件信息吗?(最好服务器不重启)