Beaglebone black eth0 获取不到静态ip配置
Beaglebone black eth0 does not get static ip configuration
我有一个接口 eth0,我将其添加到网桥 (br-lan)。
然后我想把eth0的IP给br-lan,让eth0进入没有IP的状态。
我执行了以下步骤,但在一段时间后 eth0 获得了另一个不同于 br-lan 但在同一子网内的 DHCP IP。
# brctl addbr br-lan
# brctl addif br-lan eth0
# ifconfig br-lan up
# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:545 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44350 (43.3 KiB) TX bytes:6125 (5.9 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr:192.168.11.175 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5145 (5.0 KiB) TX bytes:37372 (36.4 KiB)
Interrupt:40
root@beaglebone:~# ifconfig eth0 0.0.0.0
root@beaglebone:~# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:545 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44350 (43.3 KiB) TX bytes:6125 (5.9 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6048 (5.9 KiB) TX bytes:37792 (36.9 KiB)
Interrupt:40
root@beaglebone:~# dhclient br-lan
root@beaglebone:~# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr: 192.168.11.192 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:548 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:45134 (44.0 KiB) TX bytes:9094 (8.8 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr:192.168.11.175 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:499 errors:0 dropped:0 overruns:0 frame:0
TX packets:794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42497 (41.5 KiB) TX bytes:74010 (72.2 KiB)
Interrupt:40
有谁知道为什么 eth0 会返回不同的 IP?
我的 /etc/network/interfaces 没有配置 eth0 DHCP。事实上,即使我向其中添加以下行,eth0 在我执行 "dhclient br-lan"
后仍会获得 192.168.11.X IP
auto eth0
iface eth0 inet static
address 192.168.0.102
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1
我如何让 eth0 通过网络获取 DHCP IP 并坚持使用无 IP
我是 运行 Beaglebone 上的 Debian 7.4
显然 wicd 正在重新连接 eth0。以下步骤解决了自动重新连接 eth0
的问题
将/etc/wicd/manager-settings.conf
中的"auto_reconnect = True"改为"auto_reconnect = False"
/etc/init.d/wicd重启
我有一个接口 eth0,我将其添加到网桥 (br-lan)。
然后我想把eth0的IP给br-lan,让eth0进入没有IP的状态。
我执行了以下步骤,但在一段时间后 eth0 获得了另一个不同于 br-lan 但在同一子网内的 DHCP IP。
# brctl addbr br-lan
# brctl addif br-lan eth0
# ifconfig br-lan up
# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:545 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44350 (43.3 KiB) TX bytes:6125 (5.9 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr:192.168.11.175 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5145 (5.0 KiB) TX bytes:37372 (36.4 KiB)
Interrupt:40
root@beaglebone:~# ifconfig eth0 0.0.0.0
root@beaglebone:~# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:545 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:44350 (43.3 KiB) TX bytes:6125 (5.9 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6048 (5.9 KiB) TX bytes:37792 (36.9 KiB)
Interrupt:40
root@beaglebone:~# dhclient br-lan
root@beaglebone:~# ifconfig
br-lan Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr: 192.168.11.192 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
inet6 addr: fd00:aaaa::d239:72ff:fe54:c593/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:548 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:45134 (44.0 KiB) TX bytes:9094 (8.8 KiB)
eth0 Link encap:Ethernet HWaddr d0:39:72:54:c5:93
inet addr:192.168.11.175 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe54:c593/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:499 errors:0 dropped:0 overruns:0 frame:0
TX packets:794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42497 (41.5 KiB) TX bytes:74010 (72.2 KiB)
Interrupt:40
有谁知道为什么 eth0 会返回不同的 IP?
我的 /etc/network/interfaces 没有配置 eth0 DHCP。事实上,即使我向其中添加以下行,eth0 在我执行 "dhclient br-lan"
后仍会获得 192.168.11.X IP auto eth0
iface eth0 inet static
address 192.168.0.102
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1
我如何让 eth0 通过网络获取 DHCP IP 并坚持使用无 IP
我是 运行 Beaglebone 上的 Debian 7.4
显然 wicd 正在重新连接 eth0。以下步骤解决了自动重新连接 eth0
的问题将/etc/wicd/manager-settings.conf
中的"auto_reconnect = True"改为"auto_reconnect = False"
/etc/init.d/wicd重启