[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Connecting a Laptop to a Local Network to get Internet Access



rab wrote:

I have my laptop (192.168.1.2) connected to my desktop computer (192.168.1.1) via ethernet. Both are running RH 9.0. The desktop is connected to the Internet by a working DSL connection. I can ssh between the two in either direction. But how do I get Internet access from the laptop? Do I need to set up a DNS server on the desktop? (This looks to be complicated.) Can't I use the DNS server on my ISP? I cannot ping anything outside the local network from the laptop.

Any suggestions would be appreciated.

Rick B.


_______________________________________________ Redhat-install-list mailing list Redhat-install-list redhat com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request redhat com Subject: unsubscribe


I ran the following command as root:

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source XXX.XXX.XXX.60

where X's indicate the actual IP for eth0 on the Internet. (I found this example on pp. 507-508 of "Red Hat Linux 9 Bible" by Christopher Negus.)

Now I can access web pages on the Internet from my laptop.

My question now is, how do I make this permanent? I want this to persist after a reboot.

Thanks to everyone for all the help.

Rick B.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]