gentoo下面配置网络你可以在/etc/conf.d/net最后加上
复制内容到剪贴板
代码:
iface_eth0="IPaddress [color=red]broadcast[/color] XXX [color=red]netmask[/color] XXX"
[color=red]gateway[/color]="eth0/XXX"然后rc-update add net.eth0 default
关于网卡帮定多IP的问题是在/etc/sysconfig/network-scripts目录里面创建一个名为ifcfg-eth0文件,内容:
复制内容到剪贴板
代码:
DEVICE="eth0:0"
IPADDR="XXXXX"
NETMASK="255.255.255.0"
ONBOOT="yes"多个IP就建立多个文件把文件名和eth0:X改成相应的数字
这个是redhat下的方法,gentoo没用过