由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - won't take the eth0 config from /etc/network/interaces
相关主题
dns-nameservers field in /etc/network/interfaceRe: 有没有什么网络函数能够 (转载)
2 default gateway when have 2 eth interfaceslinux routing table question from dummy
为什么resolv.conf总被复原这边高手多,问个简单网络问题
make ubuntu to use static ip in command line求助:ubuntu9.04 无线wpa上网失败
why /etc/network/interfaces doesn't show "eth0"How to change pc wireless mac address under Ubuntu system?
网络设置问题Linux下什么命令能知道哪个网卡插了线了?
能否建立一个虚拟网卡并监听端口?请问怎么获取pptp拨号后的子网?
求助:ubuntu上不了网(非无线)unplug the network cable, ifconfig still says up
相关话题的讨论汇总
话题: eth0话题: etc话题: network话题: interaces话题: linux
进入Linux版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
i have
ifconfig eth0 10.50.181.126 up
in /etc/init.d/rcS
in /etc/network/interfaces i have
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.50.181.125
netmask 255.255.252.0
network 10.50.181.0
broadcast 10.50.183.255
gateway 10.50.1.254
but after booting, ip is 10.50.181.126.
If i comment out that line in rcS, then it takes ip from DHCP.
Linux 2.6.38.8 #23 Fri Oct 7 17:36:54 EDT 2011 armv5tejl GNU
/Linux
any hints pls ?
w*s
发帖数: 7227
2
据说因为这是embedded linux, 不用 /etc/network/interfaces ...
w*s
发帖数: 7227
3
totally lost,
1. set /etc/init.d/rcS to use static ip by using
ifconfig eth0 10.50.181.126 up
2. reboot, yes it's using static
3. ifdown eth0; ifup eth0
it's taking /etc/network/interfaces
and using dhcp now
why it's not using dhcp from reboot ?
1 (共1页)
进入Linux版参与讨论
相关主题
unplug the network cable, ifconfig still says upwhy /etc/network/interfaces doesn't show "eth0"
shall i call system("ifconfig eth0 ... up") or write my own (转载)网络设置问题
move cable from eth1 to eth0, but cannot ping eth0能否建立一个虚拟网卡并监听端口?
VM中routing table消失的问题求助:ubuntu上不了网(非无线)
dns-nameservers field in /etc/network/interfaceRe: 有没有什么网络函数能够 (转载)
2 default gateway when have 2 eth interfaceslinux routing table question from dummy
为什么resolv.conf总被复原这边高手多,问个简单网络问题
make ubuntu to use static ip in command line求助:ubuntu9.04 无线wpa上网失败
相关话题的讨论汇总
话题: eth0话题: etc话题: network话题: interaces话题: linux