新插网卡如何配置以及启动项配置。
发表于 : 2006-04-14 2:37
机器新装了一块网卡,机器自动识别了eth2。原来的识别了eth0。
现在eth0用来拨号,eth2用来连另外一台机器。我配置pppoe的时候把他设置成了自动拨号,但是他就是不自动启动,连网卡也没被激活。我每次都要启动x来配置,用命令ifup eth0的时候就会出现不能读取/etc/networking/interfaces
我不知道是什么原因。还有到底要怎么配置才能正常启动。那里有设备的配置文件。例如网卡,这是/etc/networking/interfaces的配置文件
iface lo inet loopback
iface eth2 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# added by pppoeconf
auto eth0
iface eth0 inet manual
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
auto eth2
-----------------------------------------------
还有就是启动项的问题。我在/etc/rc6.d/S37nat.sh,(36为networking),K40nat.sh。但是它老是不启动,不知道怎么回事。还有就是开机启动动态域名转向也是的。我写在了S38里了,它也不启动。请版主帮忙。。。。谢谢先
现在eth0用来拨号,eth2用来连另外一台机器。我配置pppoe的时候把他设置成了自动拨号,但是他就是不自动启动,连网卡也没被激活。我每次都要启动x来配置,用命令ifup eth0的时候就会出现不能读取/etc/networking/interfaces
我不知道是什么原因。还有到底要怎么配置才能正常启动。那里有设备的配置文件。例如网卡,这是/etc/networking/interfaces的配置文件
iface lo inet loopback
iface eth2 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# added by pppoeconf
auto eth0
iface eth0 inet manual
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
auto eth2
-----------------------------------------------
还有就是启动项的问题。我在/etc/rc6.d/S37nat.sh,(36为networking),K40nat.sh。但是它老是不启动,不知道怎么回事。还有就是开机启动动态域名转向也是的。我写在了S38里了,它也不启动。请版主帮忙。。。。谢谢先