LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-17-2006, 11:38 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
slackware IP /conecting 2 boxes


Hello,
I have to boxes connected to each other via a crossover cable.
They are not connected to the internet. I want them to communicate between each other.
1.How can I assign them static IP (192.168.0.1 and 192.168.0.2)?
It's probably ifconfig, right? What exactly?
2.How do I make them assigned automatically on the startup?

3. how can I connect them to share files and terminals?
thanks
 
Old 07-17-2006, 12:19 PM   #2
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
run 'netconfig' as root and select Static IP. Then the ip's and hosts entered at netconfig will be assigned at boot automatically.
 
Old 07-17-2006, 06:32 PM   #3
marsm
Member
 
Registered: Aug 2005
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 15
I'm running exactly the same setup you are trying to create and also managed to get both of them online via NAT (IP masquerading), just in case you want to try this later on. Here's the thread.

If you're absolutely sure you don't want to connect them to the internet, just edit /etc/rc.d/rc.inet1.conf on both boxes (the addresses are automatically assigned then) and start the SSH daemon by typing /etc/rc.d/rc.sshd start (again, on both). Now you can simply type ssh sycamorex@otherbox to start a SSH session to share files etc
 
Old 07-19-2006, 06:54 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Thanks I did netconfig, however, when I rebooted the computer, eth0 was down. So the first thing I need to do
is to make eth0 up automatically on the startup. How can I do it?
thanks
 
Old 07-20-2006, 05:05 PM   #5
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
What says ifconfig -a ?
Ciao
 
Old 07-21-2006, 04:19 AM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
When I reboot the box ifconfig -a
gives only lo interface
then every time I have to issue ifconfig eth0 up
The reason for it is that when I installed slack
I had an integrated network card which wasn't supported,
so I got an pci generic 3m network card which was plugged
in the motherboard after the installation has finished.
I gather I need to edit some file to make it up at the bootup, but which file...?

thanks
 
Old 07-21-2006, 12:59 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
When I reboot the box ifconfig -a
gives only lo interface
then every time I have to issue ifconfig eth0 up
The reason for it is that when I installed slack
I had an integrated network card which wasn't supported,
so I got an pci generic 3m network card which was plugged
in the motherboard after the installation has finished.
I gather I need to edit some file to make it up at the bootup, but which file...?
I'm not sure why your device is not brought up automaticly. I would open up the /etc/rc.d/rc.inet1.conf to make sure you have your eth0 configured correctly, and also make sure your /etc/rc.d/rc.inet1 is executable. If all else fails, you can always add ‘ifconfig eth0 up’ to your /etc/rc.d/rc.local

regards,
…drkstr
 
Old 07-23-2006, 04:29 PM   #8
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 881

Rep: Reputation: 120Reputation: 120
I've had that problem with onboard lans and have had to use nics.

As root do an "lspci" to see if mobo's lan chip and/or your nic is recognised by your system. If it/they are listed under lspci that means that they are recognised by your system but not necessarily that the correct kernel module (if any) is loaded for the network interface.

If you do have the correct module in /lib/modules/kernel_version and it is not being loaded by hotplug, you can load it at boot using /etc/rc.d/rc.modules in which you uncomment the relevant /sbin/modprobe/..... line or add a new line which will load your chip/nic module.

As for assigning ip numbers to your boxes, as root use the command "netconfig" to configure and settings will be good at each boot. For your setup, I would probably just select static ip.

You can use any numbers you like but they should conform to the convention. For lans 192.168.number.number is standard and will never be used on wans.
 
  


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
Sharing files between a Slackware box and several Windows boxes bakarihibiki Linux - Networking 1 01-17-2006 02:51 PM
If desktops are refered to as boxes do you also refer to laptops as boxes? dr_zayus69 General 14 12-24-2005 04:46 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 08:24 AM
conecting 3 linux pc´s vicente Linux - Networking 1 09-07-2001 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:02 AM.

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