Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Aloha-
I am running slackware 9.1 and am useing an older motherboard that had ethernet on board. The ethernet that was on board is no longer there (rj45 jack) but the controller is so I replaced it with a pci ethernet card. My problem is that when ever I start up I have to bring eth1 up and dhcpcd eth1 to get it working. This is a pain and a waste of time. Is there a way to bring this online at start up? or Maybe a script I could write to do this for me?
thanks
dag33k
Thanks for the quick reply synaptical, but could you tell what to edit. Sorry still a newbie here but very willing to learn. I do learn best by example or the hard way(as mom used to say) hehe.
dag33k
P.S. if you need a copy of rc.inet1 let me know. TIA
# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
#IPADDR2="127.0.0.1" # REPLACE with YOUR IP address!
#NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"
so if the card has a static IP, enter that where it says IPADDRR2= and uncomment the netmask. or if it gets an IP through DHCP, leave all that commented and uncomment USE_DHCP2=yes. i'm pretty sure that's all there is to it.
I got it to work! Thanks to your help. The problem was I was looking at rc.inet1, but needed to edit rc.inet1.conf. This is the change I made:
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
Thanks for the help
A Hui Ho
dag33k
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.