LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   routes, default gateways, ip's internet connecting - Much Stress (https://www.linuxquestions.org/questions/linux-networking-3/routes-default-gateways-ips-internet-connecting-much-stress-98370/)

mudelf 09-29-2003 05:13 PM

routes, default gateways, ip's internet connecting - Much Stress
 
I have a pc which I can connect to the net using wvdial (named brambles) and is set to be the gateway (standard dial up access on a 56 Modem) and a second pc (plum) connected to it from an ethernet card.

Both pc's run Redhat 8 and both can ping each other and call each other by hostname (set up in HOSTS --
have no clue how to do DNS or DHCP..... :( )

Could anyone explain what I need to do to access the net from my 2nd Redhat Box. I have the defalt route set to the Gateway PC on plum like so:-


My ip's are:-

Brambles: 192.168.0.2
Plum: 192.168.0.1


(had to chop a few bits from these to make em fit in here...)

[root@plum Max]$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Iface
192.168.0.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo
0.0.0.0 192.168.0.2 0.0.0.0 eth0


I am sure something is pretty wrong here but cannot figure out what ...


netstat -nr for Brambles.

Destination Gateway Genmask Iface
192.168.0.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo

route for Brambles

[root@brambles Max]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Iface
192.168.0.0 * 255.255.255.0 eth0
127.0.0.0 * 255.0.0.0 lo



Is the first line on both these tables correct also ? It does not look right but I cannot figure it out despite
numerous searches.

I'm almost there with this --- but ;-) just can't quite fire on all six cylinders --- someone help!

DoubleOTeC 09-29-2003 05:39 PM

I have two suggestions....

enable ip_forwarding:
echo "1" > /proc/sys/net/ipv4/ip_forward

and setup iptables to forward all traffic on the eth0 to ppp, ie, the etherenet adapter to the dialup modem....

also...it may be advised...(from my experience)... to, in addition supply plum with ur isp's dns server adresses.

hakcenter 09-29-2003 06:13 PM

dont forget to masq.

Read my Sig Link, its for 'ethernet' adapters, but you can port it easily.


All times are GMT -5. The time now is 03:18 AM.