|
发表于 2005-4-14 11:36:27
|
显示全部楼层
我用的和兄弟的版本不一样,网卡也只能用一个。我用的是powerpc版本。大体上应该差不多。。
要看一下这个几个文件:我也不太熟悉 。
/etc/modules 这里也启动时自动加载的模块
/etc/modprobe.d/aliases 为设备指定别名,我认为应该是这里 比如加个
- alias eth0 via-rhine
- alias eth1 via-rhine
复制代码
最好先用ifconfig来查一下,不要把8139的写错了。到底8139是eth0还是eth1,还是eth2。。
/etc/modprobe.d/arch-aliases 这个也看一下吧。。
modprobe.d
另外网卡ip的配置文件是
/etc/network/interfaces
如果是DHCP自动获得IP,内容是:
- # 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
- # This is a list of hotpluggable network interfaces.
- # They will be activated automatically by the hotplug subsystem.
- mapping hotplug
- script grep
- map eth0
- # The primary network interface
- iface eth0 inet dhcp
- auto eth0
复制代码
如果是自己指定的IP,interface的内容格式如下:
- # 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
- # This is a list of hotpluggable network interfaces.
- # They will be activated automatically by the hotplug subsystem.
- mapping hotplug
- script grep
- map eth0
- # The primary network interface
- iface eth0 inet static
- address 192.168.1.2
- netmask 255.255.255.0
- gateway 192.168.1.1
- auto eth0
复制代码
感觉和其它linux版本差不多,大同小异。。 |
|