LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2004, 03:13 PM   #1
dag33k
LQ Newbie
 
Registered: Aug 2003
Location: Land of Aloha
Distribution: Slackware 9.1
Posts: 16

Rep: Reputation: 0
Talking enable eth1 and dhcp on start up


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
 
Old 03-05-2004, 03:16 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
you can set it up in /etc/rc.d/rc.inet1
 
Old 03-05-2004, 03:39 PM   #3
dag33k
LQ Newbie
 
Registered: Aug 2003
Location: Land of Aloha
Distribution: Slackware 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 03-05-2004, 03:57 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Code:
# 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.
 
Old 03-05-2004, 04:39 PM   #5
dag33k
LQ Newbie
 
Registered: Aug 2003
Location: Land of Aloha
Distribution: Slackware 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 03-05-2004, 04:51 PM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
thanks for the report -- i always just edited the rc.inet1 file directly, but it's good to know there's another way to do it that works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhcp eth0 and XP eth1 internet sharing props666999 Slackware 8 08-20-2005 09:48 AM
eth1 interface does not start up automatically wprauchholz Linux - Newbie 1 10-24-2004 09:46 AM
eth1 interface does not start-up automatically wprauchholz Linux - Networking 1 10-24-2004 06:20 AM
DHCP using eth1 for internet eht0 for router... Zero-0-Effect Linux - Networking 12 01-17-2004 04:06 PM
DHCP and eth1:9 mrsolo Linux - Networking 0 12-26-2003 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration