您尚未登录。

#1 2013-02-17 21:56:51

mrfox
会员
注册时间: 2012-01-26
帖子: 65

arch现在有ifconfig吗

安装vmwaretools时,脚本问ifconfig的路径,我find了下没找到,直接打ifconfig,bash也说无,是不是现在没了,那要装vmwaretools还得把它安上?

离线

#2 2013-02-17 22:29:45

cuihao
所在地: USTC, Hefei
注册时间: 2011-08-19
帖子: 1,222
个人网站

Re: arch现在有ifconfig吗

cuihao-tp430-arch $ pkgfile ifconfig                                          ~
core/net-tools

Site: CVHC.CC   Twitter: @cuihaoleo   Org: LUG@USTC
AD:  ~欢迎参与志愿计算~

离线

#3 2013-02-17 22:42:02

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: arch现在有ifconfig吗

net-tools 不在 base 和 base-devel 里,建议 chroot 进去之后安装 net-tools 和 netcfg 以及 wpa_supplicant 以便重启进入新系统后联网。

离线

#4 2013-02-17 23:09:57

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: arch现在有ifconfig吗

嗯,pkgfile是个好东西。

离线

#5 2013-02-18 14:01:38

fengchao
会员
注册时间: 2012-02-21
帖子: 116

Re: arch现在有ifconfig吗

ifconfig 已经被弃用,现在推荐使用 ip 工具。

net-tools is dead upstream, and Arch has switched to using iproute2 for initscripts. net-tools isn't a dependency of anything in base, and isn't in the base group itself — we shouldn't assume it is installed anymore.

https://wiki.archlinux.org/index.php/Ar … >_iproute2

离线

#6 2013-02-19 10:13:24

mrfox
会员
注册时间: 2012-01-26
帖子: 65

Re: arch现在有ifconfig吗

感谢各位回复,我还没试验成功,主要是换了网络环境,我又连不上网了:( ,所以获取不了ifconfig。

PS: 我的arch在vmware里,主机现在是可以联网的,我想镜像一个源到本地然后给arch用,应该如何做呢

离线

#7 2013-02-19 10:36:44

mrfox
会员
注册时间: 2012-01-26
帖子: 65

Re: arch现在有ifconfig吗

fengchao 说:

ifconfig 已经被弃用,现在推荐使用 ip 工具。

net-tools is dead upstream, and Arch has switched to using iproute2 for initscripts. net-tools isn't a dependency of anything in base, and isn't in the base group itself — we shouldn't assume it is installed anymore.

https://wiki.archlinux.org/index.php/Ar … >_iproute2


ip工具也有问题

vmware桥接方式,已知ip、掩码、网关、DNS,按wiki执行ip link set enp2s1 up后分配地址和掩码,完事ping了一下本机无误。但执行
ip route add default via 网关的时候提示RTNETLINK answers: Network is unreachable,直接ping网关提示connect: Network is unreachable,在/etc/resolv.conf里添加DNS无问题,目前看就是网关连不上,在英文论坛找到相似一例
https://bbs.archlinux.org/viewtopic.php?id=146097
尾贴推荐的就是iproute2, 但看样子LZ是用ifconfig解决的

PS:在主机下ping网关无问题,但虚拟机网卡已经UP后ping不通网关,迷惑

最近编辑记录 mrfox (2013-02-19 10:38:57)

离线

#8 2013-02-19 16:21:17

mrfox
会员
注册时间: 2012-01-26
帖子: 65

Re: arch现在有ifconfig吗

刚才又试了一下安装盘启动,NAT,启动后可以ping通网关,但ping不通外网,加了DNS也不能

改bridge方式,设置完IP后问题同上,又PING不通网关了

离线

页脚