Rosemary,
You can use this switch for your networking. In a lot of ways, it will
probably work out better for you. What you need to do is configure the
box with the modem with a static IP address in its ethernet interface.
Do NOT set a gateway address or default route on this interface. The
default route will be over your modem connection, and will get set when
you make the dialup connection.
For your second machine, you have a couple of choices. You can set this
one up with a static IP address, and use the IP address of the first
machien as the gateway for the default route. Or you can run a dhcp
server ont he first machine, and let it set things for the second
machine. Both ways work fine.
For a quick setup, to make sure your network works, a static IP may be
the better way to go. Make sure your cabling and such is working right,
and then add features. You can do this manual from the command line.
Machine with modem.
ifconfig eth0 192.168.1.1
Second machine.
ifconfig eth0 192.168.1.2
route add default gw 192.168.1.1
You can then use ping to make sure they can see each other. If you have
the ssh service running on one machine, you can use ssh from the other
machine to log into it, and make sure everything works.
This is my output from ping on main box, and I get similar on second
box. Is it correct? I looked at man pages ...
[EMAIL PROTECTED] ~]$ ping -v
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline]
[-p pattern] [-s packetsize] [-t ttl] [-I interface or address]
[-M mtu discovery hint] [-S sndbuf]
[ -T timestamp option ] [ -Q tos ] [hop1 ...] destination
From the first machine, (192.168.1.1) you would run:
ping 192.168.1.2
or
ping -c 5 192.168.1.2
The first case will keep sending pings untill you hit Ctrl-C, then
second case will stop after 5 pings. You can use any value you like
after the -c. The IP address is for the machine you are trying to get a
responce from, not the machine you are on. But you can ping your own
machine. So, you could use "ping -c 3 192.168.1.1",
"ping -c 3 127.0.0.1", or "ping -c 3 localhost" to ping yourself from
192.168.1.1 - the last two forms should ping the machine you are on when
run on any machine.
Pinging myself 192.168.1.1 gives 0% packet loss, so firewall definitely
mepis.
I need to find out about ssh.
You may have to run "urpmi openssh-server" to install it. I don't
remember if the server is installed by default. I always install it...
If it isn't running, you can start it wil "service sshd start".
I don't believe the default install will let you log in as root. What
you usualy do is log in on the local machine as a normal user. If that
user also has an account on the remote machine, then you can run
"ssh <remote machine>" and connect. If not, then you can use the -l
option to specify the remote user.
"ssh <remote machine> -l <remote user>"
From 192.168.1.1, to connect to 192.168.1.2, it the sshd service is
running on 192.168.1.2, you would run:
ssh 192.168.1.2
or
ssh 192.168.1.2 -l rosemary
At this point, I would consider setting up dnsmasq on the modem machine,
and letting it provide dhcp service for the network. It has the
advantage of providing DNS for the local network, as well as forwarding
requsets from the second machine to your ISP's name servers as set by
your modem connection. It gets the names for the local network from
/etc/hosts on the machine it is running on, as well as from the dhcp
leases it gives out. It also acts as a chaching name server for the
local network. It was written for setups like yours.
I need to find out about this. Going to work this afternoon so it will
be on hold until I get some time.
Mikkel
------------------------------------------------------------------------
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________
--
Rosemary
Registered Linux User # 386597 http://counter.li.org
"A friend may well be a masterpiece of nature". Emerson
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________