Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
使用:
ifconfig - 在本例中,您的 IP 将位于 inet addr: 之后 1.1.1.1
ifconfig
inet addr:
1.1.1.1
示例输出:
root@server [~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0A:E4:89:0B:97 inet addr:1.1.1.1 Bcast:1.1.1.63 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1/or modify RX packets:14804377317 errors:0 dropped:0 overruns:0 frame:0 TX packets:11766937374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13799286299902 (12.5 TiB) TX bytes:4891709752100 (4.4 TiB) Interrupt:169 Memory:fa000000-fa012800 will be useful,
http://www.debianadmin.com/network-interface-configuration-using-ifconfig.html
use:
ifconfig - your ip will be after the inet addr: in this case 1.1.1.1
sample output:
ip -4 a l dev $DEVICE | grep inet | awk '{ print $2 }'
将 $DEVICE 替换为设备名称。大多数情况下 eth0 应该是正确的
eth0
replace $DEVICE with the device name. eth0 should be the right in the most cases
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
使用:
ifconfig
- 在本例中,您的 IP 将位于inet addr:
之后1.1.1.1
示例输出:
http://www.debianadmin.com/network-interface-configuration-using-ifconfig.html
use:
ifconfig
- your ip will be after theinet addr:
in this case1.1.1.1
sample output:
http://www.debianadmin.com/network-interface-configuration-using-ifconfig.html
将 $DEVICE 替换为设备名称。大多数情况下
eth0
应该是正确的replace $DEVICE with the device name.
eth0
should be the right in the most cases