$ ifconfig
# ifconfig [network card name] IP MASK
$ sudo ifconfig eth0 10.30.3.99 netmask 255.255.255.0
$ ip r
$ route
# ip r a default via GATEWAY
$ ip r a default via 10.30.3.1
$ ping www.baidu.com
$ ifconfig
# ifconfig [network card name] IP MASK
$ sudo ifconfig eth0 10.30.3.99 netmask 255.255.255.0
$ ip r
$ route
# ip r a default via GATEWAY
$ ip r a default via 10.30.3.1
$ ping www.baidu.com
本文标题:ifconfig 设置IP地址。
本文链接:https://www.haomeiwen.com/subject/nvgvgftx.html
网友评论