Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-17-2006, 11:38 AM
|
#1
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
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
|
|
|
07-17-2006, 12:19 PM
|
#2
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
run 'netconfig' as root and select Static IP. Then the ip's and hosts entered at netconfig will be assigned at boot automatically.
|
|
|
07-17-2006, 06:32 PM
|
#3
|
Member
Registered: Aug 2005
Distribution: Ubuntu
Posts: 62
Rep:
|
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
|
|
|
07-19-2006, 06:54 AM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Original Poster
|
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
|
|
|
07-20-2006, 05:05 PM
|
#5
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
What says ifconfig -a ?
Ciao
|
|
|
07-21-2006, 04:19 AM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Original Poster
|
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
|
|
|
07-21-2006, 12:59 PM
|
#7
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
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
|
|
|
07-23-2006, 04:29 PM
|
#8
|
Member
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 881
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|