LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-15-2005, 06:52 PM   #1
girlsmakegraves
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
Question Slackware - Eth1 Setup and Port Setup help


I am setting up a Slackware Server to try out a SQL Server > MySQL migration and I have two problems I would appreciate some help with.

1) Eth0 is an onboard NIC (disabled I believe) and I have Eth1 assigned to another NIC which Iam using, Iam currently just running ifconfig eth1 then assigning an IP address and telling it to go up and it works fine however I have to do this everytime I boot. Can anyone explain to me how I could set up eth1 perm since netconfig only seems to setup eth0. Or possibly the location to the conf files that would contain that information.

2) I need to open up the port 3306 to let in outside connections to my MySQL database but I cant seem to figure out how to open the port.

Thank you for any and all assistance.
 
Old 12-15-2005, 07:10 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
1) set that in your /etc/rc.d/rc.local

rc.local is where all 'custom' scripts can go for bootup; if you do a quick search for 'static ip slackware' I'm sure you'll get more results as to various places you can define the interface.
 
Old 12-16-2005, 07:42 AM   #3
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by girlsmakegraves
I am setting up a Slackware Server to try out a SQL Server > MySQL migration and I have two problems I would appreciate some help with.

1) Eth0 is an onboard NIC (disabled I believe) and I have Eth1 assigned to another NIC which Iam using, Iam currently just running ifconfig eth1 then assigning an IP address and telling it to go up and it works fine however I have to do this everytime I boot. Can anyone explain to me how I could set up eth1 perm since netconfig only seems to setup eth0. Or possibly the location to the conf files that would contain that information.

2) I need to open up the port 3306 to let in outside connections to my MySQL database but I cant seem to figure out how to open the port.

Thank you for any and all assistance.
1)
Linux sets "ethX" to cards starting with 0 and so on.
So since you have a eth1 you also have a eth0 therefore the onboard nic is not disabled i think.

Slackware has a /etc/rc.d/rc.inet1.conf Edit it and you will find variables for IP NETMASK etc.
Set them and everytime you reboot the ethernet card will be set up automagically.

2)
Slackware doesn't include a firewall script by default, so no port is blocked.
If you can't connect to the mysql daemon, did you check if the daemon is up ?
Do you use the mysql package provided by slackware or did you compile it from source.

run "ps -ef" to see if the mysqld daemon is up.
if not then check /etc/rc.d/rc.mysql file
 
Old 12-16-2005, 11:11 AM   #4
girlsmakegraves
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Poetics
1) set that in your /etc/rc.d/rc.local

rc.local is where all 'custom' scripts can go for bootup; if you do a quick search for 'static ip slackware' I'm sure you'll get more results as to various places you can define the interface.
Thank you this worked for me.

Quote:
Originally Posted by imitheos
1)
Linux sets "ethX" to cards starting with 0 and so on.
So since you have a eth1 you also have a eth0 therefore the onboard nic is not disabled i think.

Slackware has a /etc/rc.d/rc.inet1.conf Edit it and you will find variables for IP NETMASK etc.
Set them and everytime you reboot the ethernet card will be set up automagically.

2)
Slackware doesn't include a firewall script by default, so no port is blocked.
If you can't connect to the mysql daemon, did you check if the daemon is up ?
Do you use the mysql package provided by slackware or did you compile it from source.

run "ps -ef" to see if the mysqld daemon is up.
if not then check /etc/rc.d/rc.mysql file
I did ps -ef and you were correct mysqld was not running. I did uninstall the package that came with Slackware and downloaded the mySQL binaries and was working on installing those. When I try to run mysqld it seems to work but them it wont let me issue anymore commands it just seems to sit there and I cant ctrl-z. Since it seems my problems are now mySQL exclusive should I direct my questions on their forums?

Thank you very much for the help.

Edit: Solved the problem Thanks for everyones help!

Last edited by girlsmakegraves; 12-16-2005 at 11:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bad mac address in eth1 (wireless) setup FC4 seraph-oo- Linux - Wireless Networking 3 11-24-2005 02:46 AM
Changing port setup DarkNecromancer Linux - Hardware 1 06-09-2005 05:50 PM
Parallel port setup lectraplayer Linux - Newbie 3 07-07-2003 07:09 PM
Can't setup eth1 :( gr0don Linux - Networking 3 06-27-2003 04:22 PM
Multicast Setup/eth1 setup QuadMonk Linux - Networking 1 04-29-2002 06:52 AM

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

All times are GMT -5. The time now is 07:30 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