LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Slackware - Eth1 Setup and Port Setup help (https://www.linuxquestions.org/questions/linux-networking-3/slackware-eth1-setup-and-port-setup-help-393352/)

girlsmakegraves 12-15-2005 06:52 PM

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.

Poetics 12-15-2005 07:10 PM

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.

imitheos 12-16-2005 07:42 AM

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

girlsmakegraves 12-16-2005 11:11 AM

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!


All times are GMT -5. The time now is 01:14 AM.