我使用11 (x86_64)作为VM虚拟机(克隆的)。不知道为什么,但网卡不能通过yast2配置。如果我去编辑和点击输入Yast将返回到“控制中心”。在yast2中,我还可以看到卡“没有连接”。但不知道这意味着什么。
但是如果我进入命令行并发出这两个命令,网络就启动并运行。
ifconfig eth1 10.0.0.xxx netmask 255.255.255.0 broadcast 10.0.0.255
route add default gw 10.0.0.1 eth1来自/var/log/消息
Jun 18 14:20:19 Edumate kernel: [ 221.986998] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Jun 18 14:20:19 Edumate kernel: [ 221.988366] ADDRCONF(NETDEV_UP): eth1: link is not ready
Jun 18 14:20:19 Edumate kernel: [ 221.988482] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Jun 18 14:20:29 Edumate kernel: [ 232.399704] eth1: no IPv6 routers present/etc/udev/rules.d/70-persistent-net.rules和重新启动无助于edu:/var/lib/edu/bdr# cd /etc/sysconfig/network
Edu:/etc/sysconfig/network #11
total 108
-rw-r--r-- 1 root root 13192 Jun 5 16:30 config
-rw-rw-rw- 1 root root 13181 Jun 5 15:42 config.backup.by.convert_to_netconfig
-rw-r--r-- 1 root root 7482 Jun 18 14:10 dhcp
-rw-r--r-- 1 root root 7686 Jun 5 15:42 dhcp.backup.by.convert_to_netconfig
drwxr-xr-x 2 root root 4096 Jun 5 15:42 if-down.d
drwxr-xr-x 2 root root 4096 Jun 5 15:42 if-up.d
-rw------- 1 root root 172 Jan 31 23:45 ifcfg-lo
-rw-r--r-- 1 root root 29333 Jan 31 23:45 ifcfg.template
-rw-r--r-- 1 root root 239 Jan 31 23:45 ifroute-lo
drwx------ 2 root root 4096 May 6 2010 providers
-rw-r--r-- 1 root root 22 Jun 18 14:07 routes
-rw-r--r-- 1 root root 0 Jun 18 14:07 routes.YaST2save
drwxr-xr-x 2 root root 4096 Jun 5 15:42 scripts发布于 2013-06-19 00:15:48
在SuSE上,您可以通过/etc/sysconfig/network中的文件进行手动配置网络。创建一个名为/etc/sysconfig/network/ifcfg-eth1 包含的文件
STARTMODE=onboot
BOOTPROTO=static
IPADDR=10.0.0.xxx
NETMASK=255.255.255.0
BROADCAST=10.0.0.255默认路由需要在/etc/sysconfig/network/routes中设置。
default 10.0.0.1 - eth1https://unix.stackexchange.com/questions/79798
复制相似问题