Fyk*_*sen 7 ipv6 network-manager dhcp
我刚刚安装了 ubuntu 12.04.1 替代安装(用于某些磁盘上的 raid 0)。我有一些网络问题。我在学校,我们使用电缆,它有 IPv6。
如果我run ifconfig eth0继承人我的输出:
eth0 Link encap:Ethernet HWaddr e0:cb:4e:87:ff:db
inet addr:128.39.194.217 Bcast:128.39.194.223 Mask:255.255.255.224
inet6 addr: 2001:700:1100:8008:e2cb:4eff:fe87:ffdb/64 Scope:Global
inet6 addr: fe80::e2cb:4eff:fe87:ffdb/64 Scope:Link
inet6 addr: 2001:700:1100:8008:48f7:c23:1d87:da6c/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1063378 errors:0 dropped:0 overruns:0 frame:0
TX packets:489811 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1577173461 (1.5 GB) TX bytes:37043669 (37.0 MB)
Interrupt:68 Base address:0x6000
Run Code Online (Sandbox Code Playgroud)
我的 /etc/network/interfaces 看起来像这样:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
# NetworkManager#iface eth0 inet dhcp
# NetworkManager#hostname 2001:700:1100:1::4
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
Run Code Online (Sandbox Code Playgroud)
(我不得不删除哈希标签,因为我在问 ubuntu 时遇到了 BIGFONT)
“网络管理员”说我没有连接。
如果您需要更多信息,请告诉我。:)
myw*_*ave 10
好的,所以我有一个比以前更好的答案。
我们试试这个怎么样。
打开一个终端。
gksu gedit /etc/rc.local
Run Code Online (Sandbox Code Playgroud)
加:sudo dhclient eth0像这样。
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo dhclient eth0
exit 0
Run Code Online (Sandbox Code Playgroud)
保存并关闭。重新启动,应该可以工作。
| 归档时间: |
|
| 查看次数: |
51556 次 |
| 最近记录: |