linux中如何使用ifconfig显示或设置网络设备
1、显示网络设备信息:ifconfig
2、ifconfig 网卡设备 down关闭指定的网络设备
3、ifconfig 网卡设备 up启动指定的网络设备
4、ifconfig 网篱渥对胰卡设备 add<地址>设置网络设备IPv6的IP地址PS:未测试成功,应该是ip地址有问题
5、ifconfig 网篱渥对胰卡设备 del<地址>删除网络设备IPv6的IP地址PS:未测试成功,应该是ip地址有问题
6、配置IP地址:ifconfig 网卡设备 <地址>
7、ifconfig 网卡设备地址 netmask 地址配置ip、子网掩码
8、ifconfig网卡设备地址 netmask 地址 broadcast 地址配置ip、子网掩码和网关地址
9、我们可以在etc/sysconfig/network -scripts/ifcfg-eth0配置文件修改
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:92
阅读量:25
阅读量:73
阅读量:34
阅读量:75