routing config problem

routing config problem

Post by memorys.. » Thu, 13 Jan 2000 04:00:00



 Im having trouble setting up my routing for a gateway.

the config is like this :
----------------------

#!/bin/sh
ifconfig lo 127.0.0.1 netmask 255.255.255.255 up

#set routes for local
route del default
#route add -net 192.168.0.0 netmask 255.255.255.0 eth0

#bring up eth1
ifconfig eth1 216.226.245.10 netmask 255.255.255.0 up

#set routes for outside world
route add -net 216.226.245.0 netmask 255.255.255.0 eth1
route add default gw 216.226.245.10 eth1

----------------------

I have tried using routed, but it doesnt seem to help
much. I can ping both sides of the network [local and internet]
but the internet side seems *d. Being on a direct connect
I should be fast, and it is noticeably slower than the other
machines at work.

suggestions ?

any help would be greatly appreciated.

--
// ==============

// ==============

Sent via Deja.com http://www.veryComputer.com/
Before you buy.

 
 
 

routing config problem

Post by David Mean » Fri, 14 Jan 2000 04:00:00


This is almost exactly right, except for the default gateway route;
that route should point to a machine at the *other* end of your
internet connection, not to yourself.


> Im having trouble setting up my routing for a gateway.

> the config is like this :
> ----------------------

> #!/bin/sh
> ifconfig lo 127.0.0.1 netmask 255.255.255.255 up

> #set routes for local
> route del default
> #route add -net 192.168.0.0 netmask 255.255.255.0 eth0

> #bring up eth1
> ifconfig eth1 216.226.245.10 netmask 255.255.255.0 up

> #set routes for outside world
> route add -net 216.226.245.0 netmask 255.255.255.0 eth1
> route add default gw 216.226.245.10 eth1

> ----------------------

> I have tried using routed, but it doesnt seem to help
> much. I can ping both sides of the network [local and internet]
> but the internet side seems *d. Being on a direct connect
> I should be fast, and it is noticeably slower than the other
> machines at work.

> suggestions ?

> any help would be greatly appreciated.

> --
> // ==============

> // ==============

> Sent via Deja.com http://www.veryComputer.com/
> Before you buy.