Taking it from the beginning--with the help of cvill64 tutorial--here's what I did!
I followed cvill64's tutorial on getting rid of the network manager.
From cvill64
HOWTO: Static IP
Okay, so we use NetworkManger to handle the eth on the live mode as it is extremely versitile and beautiful. But some of you need static IP support and for some reason NM isn't giving it. So the solution is just to follow this little code snipet
Code:
# rc-update del NetworkManager
# rc-update del dhcdbd
# emerge -C knetworkmanager
# sed -i 's/RC_PLUG_SERVICES=".*"/RC_PLUG_SERVICES=""/' /etc/conf.d/rc
# reboot
After following cvill64 steps above I
1. ran
#net-setup
from the console and filled in all the static info (this evidently helps with the dns and domain in the
/etc/resolv.conf file but more importantly--it gives IMMEDIATE access to the internet)!
2. then (to have it automatically boot) I deleted /etc/conf.d/net
copied net.example to net
3. nano net
and changed only the following lines (I uncommented them)
modules = ( "ifconfig")
and the uncommented lines below that where it mentions
config_eth0
routes_eth0 (this line was not there originally and I added it directly below config_eth0)
and added my static ip, netmask and broadcast where there are X's
and gateway (routes_eth0) below that.
4. After your done run
#ifconfig (to see what eth0 shows)
#/etc/init.d/net.eth0 stop (to stop the service)
#/etc/init.d/net.eth0 start (to reinit) or restart
now
#ifconfig
again and you should see your ip, nm and bc
if the internet isn't up check /etc/resolv.conf
should be something like
nameserver xxx.xxx.xxx.xxx
search state.ca.us co.santaclara.ca.us
IMPORTANT! The net file is a very large file taking into account all kinds of interfaces between wireless and static. The below rendition is a very limited edition showing only what you need to know--you will have to find the parts I changed in the bloated edition!
Hope this helps
and cudos to Lxnay and others like cvill64 for an AWESOME PRODUCTION!!!!!
##############################################################################
# QUICK-START
#
# The quickest start is if you want to use DHCP.
# In that case, everything should work out of the box, no configuration
# necessary, though the startup script will warn you that you haven't
# specified anything.
#
# WARNING :- some examples have a mixture of IPv4 (ie 192.168.0.1) and IPv6
# (ie 4321:0:1:2:3:4:567:89ab) internet addresses. They only work if you have
# the relevant kernel option enabled. So if you don't have an IPv6 enabled
# kernel then remove the IPv6 address from your config.
#
#
# If you want to use a static address or use DHCP explicitly, jump
# down to the section labelled INTERFACE HANDLERS.
#
# If you want to do anything more fancy, you should take the time to
# read through the rest of this file.
##############################################################################
# MODULES
#
# We now support modular networking scripts which means we can easily
# add support for new interface types and modules while keeping
# compatability with existing ones.
#
# Modules load by default if the package they need is installed. If
# you specify a module here that doesn't have it's package installed
# then you get an error stating which package you need to install.
# Ideally, you only use the modules setting when you have two or more
# packages installed that supply the same service.
#
# In other words, you probably should DO NOTHING HERE...
# Prefer ifconfig over iproute2
#modules=( "ifconfig" )
# You can also specify other modules for an interface
# In this case we prefer udhcpc over dhcpcd
#modules_eth0=( "udhcpc" )
# You can also specify which modules not to use - for example you may be
# using a supplicant or linux-wlan-ng to control wireless configuration but
# you still want to configure network settings per ESSID associated with.
#modules=( "!iwconfig" "!wpa_supplicant" )
# IMPORTANT: If you need the above, please disable modules in that order
##############################################################################
# INTERFACE HANDLERS
#
# We provide two interface handlers presently: ifconfig and iproute2.
# You need one of these to do any kind of network configuration.
# For ifconfig support, emerge sys-apps/net-tools
# For iproute2 support, emerge sys-apps/iproute2
# If you don't specify an interface then we prefer iproute2 if it's installed
# To prefer ifconfig over iproute2
modules=( "ifconfig" )
# For a static configuration, use something like this
# (They all do exactly the same thing btw)
#config_eth0=( "192.168.0.2/24" )
#config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
# We can also specify a broadcast
#config_eth0=( "192.168.0.2/24 brd 192.168.0.255" )
config_eth0=( "xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx" )
routes_eth0=( "default gw xxx.xxx.xxx.xxx" )
#-----------------------------------------------------------------------------
# System
# For configuring system specifics such as domain, dns, ntp and nis servers
# It's rare that you would need todo this, but you can anyway.
# This is most benefit to wireless users who don't use DHCP so they can change
# their configs based on ESSID. See wireless.example for more details
# To use dns settings such as these, dns_servers_eth0 must be set!
# If you omit the _eth0 suffix, then it applies to all interfaces unless
# overridden by the interface suffix.
#dns_domain_eth0="your.domain.here"
#dns_servers_eth0="xxx.xxx.xxx.xxx"
#dns_search_eth0="state.ca.us co.santaclara.ca.us"
#dns_options_eth0=( "timeout 1" "rotate" )
#dns_sortlist_eth0="130.155.160.0/255.255.240.0 130.155.0.0"
# See the man page for resolv.conf for details about the options and sortlist
# directives
#ntp_servers_eth0="192.168.0.2 192.168.0.3"
#nis_domain_eth0="domain"
#nis_servers_eth0="192.168.0.2 192.168.0.3"
#-----------------------------------------------------------------------------