On Thu, 18 May 2000, Doug McGarrett wrote:
> I tried the other day to set up my network card that hooks to an adsl
> connection, but I am snowed by the terminology. Is there anywhere on
> line a simple dictionary of the terminology, or whatever I need. I
> can connect the thing on MS Windows, but Linux seems to want to know
> so much more.
>
> Just the first example: MS seems to name my machine Doug McGa
> unless I don't know what MS is doing--not surprising, I suppose,
> and Linux wants to call my machine something like localhost @local
> or something like that. It gets hairier from there.
>
Windows uses the name you gave it during windows install by default.
Linux defaults to localhost if you don't set a host name. You realy
should set a host name. Something like gateway.locallan works if you
don't have a registered domain name.
> Please, somebody, say in plain english what I have to do to get the
> system on the internet via adsl. These are the ONLY parameters I
> have available to me:
>
> username
> password (assigned by isp)
> IP address: DHCP
> DNS1: xxx.xxx.xxx.xx2
> DNS2: xxx.xxx.xxx.xx3
> Netmask: 255.255.255.0
> Incoming mail(POP3): popmail.<isp>
> Outgoing mail: smtp.<isp>
>
> My internal lan address: 192.168.1.1
>
> I would really appreciate someone translating the
> nic setup routine to this background, or tell me where
> the dictionary is, and what do I answer when the answer
> is not available.
>
> I would really like to be back on Linux instead of this
> BG-Bomb, but I have to make everything work first. When
> it was just an external modem, it was not hard, but now I'm
> snowed.
>
> Thanx to all who try to help. --doug
>
You can set up most of this stuff severial different ways. Linuxconf will
let you set it up. Netcfg is an X program to do the same thing. Or you
can edit the files by hand...
If you want to do it by hand, you need to edit several files. The first
one is to get your NIC working. I am going to assume that you have the
drivers installed for it. If not, then we need to know what type...
Your connection to the local network is working, right?
If your local net is on eth0, and the DSL is on eth1, then the first file
to edit is /etc/sysconfig/netwrok-scripts/ifcfg-eth1. It should look
something like this:
DEVICE=eth1
IPADDR=
NETMASK=255.255.255.0
NETWORK=
BROADCAST=
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=no
This will let it get the setup from your DSL dhcp server. You can
probably leave the NETMASK entry blank too.
Now, you need to edit /etc/sysconfig/network. You will want something
like:
NETWORKING=yes
FORWARD_IPV4=true
HOSTNAME=gateway
DOMAINNAME=locallan
GATEWAY=
GATEWAYDEV=eth1
This will set your host name to gateway.locallan, and set the gateway
device to eth1. It also lets the machine forward between the two NICs.
Now we add a route to your local network. (/etc/sysconfig/static-routes)
eth0 net 192.168.1.0 netmast 255.255.255.0
In all these example, if eth0 is your DSL and eth1 is your local lan, just
swap them.
Now edit /etc/hosts and put in all the names of machines on your local
network. Here is an example...
127.0.0.1 localhost localhost.localdomain
192.168.1.1 gateway.locallan
192.168.1.2 doug
After this part is working, set up your firewall. Here are a couple of
links that will help. Don't leave your Linux machine up without a
firewall!
http://www.linuxnewbie.org/nhf/intel/network/ipchains2.html
http://linux-firewall-tools.com/linux/firewall/index.html
After you get things going, take time to read the networking howto's
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.