Gateway config help

Gateway config help

Post by Corporate Collection Service » Sat, 27 Feb 1999 04:00:00



I'm trying to configure a linux pc as a gateway for two IP systems, and I'm
having a little trouble putting in the routing statements.  The systems have
a 10.x.x.x series IP and a 100.x.x.x series IP addresses.  Can anyone help
by posting the proper routing addresses statements to make it work?  Thanks
so much.

Stu

 
 
 

Gateway config help

Post by JoHn Do » Sat, 27 Feb 1999 04:00:00


Try this:

route -n add x.x.x.x gw y.y.y.y

this will create a gate way from x to y.  I hope that helps (you were a
little unclear for me to be sure what is truely going on :-).

-DoH


> I'm trying to configure a linux pc as a gateway for two IP systems, and I'm
> having a little trouble putting in the routing statements.  The systems have
> a 10.x.x.x series IP and a 100.x.x.x series IP addresses.  Can anyone help
> by posting the proper routing addresses statements to make it work?  Thanks
> so much.

> Stu


 
 
 

Gateway config help

Post by Brian McCaule » Wed, 03 Mar 1999 04:00:00



Quote:> I'm trying to configure a linux pc as a gateway for two IP systems, and I'm
> having a little trouble putting in the routing statements.

Shoulb be not problem.  One warning Linux puts only gateway addresses
in the gateway column of the routing table.  This can confusr people
who come from a BSD bachground and expect to see local interfaces
addresses in the gateway column of non-gateway routes.

Quote:>  The systems have
> a 10.x.x.x series IP and a 100.x.x.x series IP addresses.  Can anyone help
> by posting the proper routing addresses statements to make it work?  Thanks
> so much.

You'll have to define what you want to do more precisesly than that.

You post as written ammounts to: "can someone write a generic tutorial
on Internet Protocols just for me".

Consider getting the HOWTOs, or the Linux NAG, or perhaps another book
on IP.

--

  .  _\\__[oo   faeces from    | Phones: +44 121 471 3789 (home)

 .  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
  # ll  l\\  ~~~~ ~   ~ ~    ~ | http://www.wcl.bham.ac.uk/~bam/
 ###LL  LL\\ (Brian McCauley)  |

 
 
 

1. FreeBSD4.6.2 Gateway config help requested

I've found many examples of people who are setting up their FreeBSD
machines as a gateway using internal (private) IP addresses to connect
to their ISP but I want to set up a FreeBSD gateway without using NAT
and private IP addresses.  My ISP has given me 1 static IP address of
205.xxx.xxx.100 and I want to use my class C 206.xxx.xxx.0 on my LAN.
The Gateway is situated on my LAN and I'm trying to make it work
properly but I'm having trouble.

Layout:

|LAN|---|FreeBSD4.6.2|-----| ISP  |----|ISP Router|----{Internet}
  |     |   Gateway  |     |Switch|    205.xxx.xxx.1
  |     |            |
 W98   rl1<--NIC--->rl0

W98 = Local client running Windows98
    = IP address 206.xxx.xxx.2
    = Gateway address = rl1 =206.xxx.xxx.1
    = DNS servers 205.xxx.xxx.50,51 (from ISP)

rl1 = 206.xxx.xxx.1
rl0 = 205.xxx.xxx.100
ISP Router = 205.xxx.xxx.1

FreeBSD 4.6.2 Gateway is using GENERIC kernel

Contents of rc.conf follows:
defaultrouter="205.xxx.xxx.1"
gateway_enable="YES"
hostname="my.host.com"
ifconfig_rl0="inet 205.xxx.xxx.100 netmask 255.255.255.0"
ifconfig_rl1="inet 206.xxx.xxx.1 netmask 255.255.255.0"
inetd_enable="NO"
kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sshd_enable="YES"

Other notes:
sysctl net.inet.ip.forwarding gives:
net.inet.ip.forwarding:1

W98 can ping only rl0, rl1 and all other local computers on LAN.
W98 cannot ping anything else as "ping offsite IPs" shows "Request
timed out".

Gateway can ping everything on LAN and Internet.

Computers not on local LAN can ping rl0 and rl1 but not other
computers on LAN.

Can anyone tell me what I've done wrong?
TIA
Shane

2. 5.2 ->6.0: Worth it?

3. --= Help with Gateway Config =---

4. Vtwm: Dynamically changing window manager?

5. Sound config on a Gateway P5-120 (Ensonic Soundscape) Can't fix it Help Pleas.

6. install linux toshiba porégé

7. The Great gateway Train or how to gateway behind the gateway

8. Upgrading to Solaris 2.4 on SPARC20

9. patch 01/38: switches in fs/Config.in, fs/Config.help

10. REPOST patch 38/38: switches in fs/Config.in, fs/Config.help

11. Help need: Sound config and epplet config

12. Config ATI GT & Gateway Crystalscan 700

13. Domain Name Server & Gateway Config for SCO 3.2.4.2