|
Home > Archive > Red Hat Configuration > January 2004 > networking in RH9: the default gateway
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
networking in RH9: the default gateway
|
|
|
| Setting up networking in RH9(shrike) by hand.
I have an Alcatel SpeedTouch 510 modem, connected to eth0 (10.0.0.150)
eth1 is 192.168.0.1, which connects to a hub and the hub connects some
other computers.
So I have a subnet 10.0.0.0/16 and 192.168.0.0/24
Now I have trouble setting up the router table.
When I do "route" on the commandline, I see no gateways for the two
subnets.
I found some relevant files:
/etc/hosts
/etc/host.conf
/etc/init.d/network
/etc/sysconfig/ifup
/etc/sysconfig/ifup-routes
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/route-eth0
/etc/sysconfig/network-scripts/route-eth1
/etc/sysconfig/network
/etc/sysctl.conf
In which file(s) do I define the default gateway ?
In which file(s) do I define the gateway for a subnet ?
do I need to define a route for the 10.0.0.0 subnet, or is it
sufficient to define eth1 (10.0.0.150) as a default gateway ?
In the hosts file, I see amongst other lines:
10.0.0.150 bravo
192.168.0.1 bravo
is that correct, bravo being the host name ?
Does the hosts file contain names for ethernet interface cards or for
computers ?
thnx for meeting this challenge :-)
frgr
Erik
| |
| Curtis 2004-01-23, 7:14 pm |
| If you modem is a DSL/Cable modem then most likely you need to have ETH0 use
DHCP to get it's address, DNS servers and Gateway.
iptabels need to be setup to do NAT and ETH1 will use 192.168.0.1 as a
gateway. Try installing Webmin for configuring various stuff on your box and
shorewall so you have a firewall that you can use through Webmin... It's a
good idea to follow the instructions for installing the SSH stuff so Webmin
is safe to use outside your internal network if desired. Dont use the RPM
for the Peal/SSL software, you must compile it to get it working.
Circus
Sorry about Emailing you! hit the wrong button...
----- Original Message -----
From: "Bit Twister" <BitTwister@localhost.localdomain>
Newsgroups: redhat.config
Sent: Tuesday, July 29, 2003 10:13 AM
Subject: Re: networking in RH9: the default gateway
quote:
> On Tue, 29 Jul 2003 09:49:27 +0200, eŽik wrote:
>
> If I were you, I would setup the network with the gui tools
> then go look at the files you provided.
>
> If you didnot/wanted to intall gui, do it on another machine or
> another parition.
| |
| Curtis 2004-01-23, 7:14 pm |
| If you modem is a DSL/Cable modem then most likely you need to have ETH0 use
DHCP to get it's address, DNS servers and Gateway.
iptabels need to be setup to do NAT and ETH1 will use 192.168.0.1 as a
gateway. Try installing Webmin for configuring various stuff on your box and
shorewall so you have a firewall that you can use through Webmin... It's a
good idea to follow the instructions for installing the SSH stuff so Webmin
is safe to use outside your internal network if desired. Dont use the RPM
for the Peal/SSL software, you must compile it to get it working.
Circus
Sorry about Emailing you! hit the wrong button...
----- Original Message -----
From: "Bit Twister" <BitTwister@localhost.localdomain>
Newsgroups: redhat.config
Sent: Tuesday, July 29, 2003 10:13 AM
Subject: Re: networking in RH9: the default gateway
quote:
> On Tue, 29 Jul 2003 09:49:27 +0200, eŽik wrote:
>
> If I were you, I would setup the network with the gui tools
> then go look at the files you provided.
>
> If you didnot/wanted to intall gui, do it on another machine or
> another parition.
| |
| Curtis 2004-01-23, 7:14 pm |
| If you modem is a DSL/Cable modem then most likely you need to have ETH0 use
DHCP to get it's address, DNS servers and Gateway.
iptabels need to be setup to do NAT and ETH1 will use 192.168.0.1 as a
gateway. Try installing Webmin for configuring various stuff on your box and
shorewall so you have a firewall that you can use through Webmin... It's a
good idea to follow the instructions for installing the SSH stuff so Webmin
is safe to use outside your internal network if desired. Dont use the RPM
for the Peal/SSL software, you must compile it to get it working.
Circus
Sorry about Emailing you! hit the wrong button...
----- Original Message -----
From: "Bit Twister" <BitTwister@localhost.localdomain>
Newsgroups: redhat.config
Sent: Tuesday, July 29, 2003 10:13 AM
Subject: Re: networking in RH9: the default gateway
quote:
> On Tue, 29 Jul 2003 09:49:27 +0200, eŽik wrote:
>
> If I were you, I would setup the network with the gui tools
> then go look at the files you provided.
>
> If you didnot/wanted to intall gui, do it on another machine or
> another parition.
|
|
|
|
|