2012年4月13日 星期五

Gentoo Network Configuration

/etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc*/net.example* and save your configuration
# in /etc/conf.d/net (this file :]!).
modules="ifconfig"
dns_servers_eth0="192.168.1.254"
config_eth0="192.168.1.234 netmask 255.255.255.0"
routes_eth0="default via 192.168.1.254"


/etc/sysctl.conf

#append this row
kernel.domainname = local


/etc/conf.d/hostname

# Set to the hostname of this machine
hostname="gentoo"

沒有留言:

張貼留言