Re: OT: Network setup - NAT

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

 



Hiisi wrote:
> Dear Fedora crowd!
> I've a desktop running Fedora 10 connected to the Internet via LAN.
> There's 3 network controllers in the desktop. One integrated to the
> motherboard and two additional. I would like to connect other computers
> (two laptops, one running fc9 and the other Window$ XP) to the Internet
> via the desktop. I googled the question and found out that I need to
> adjust thing called 'NAT'. For that purpose I did the following:
> iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j SNAT --to-source
> 192.168.*.* where 192.168.*.* - is desktop' IP address. I want to use
> 192.168.2.0/24 as a network for laptops. I activated one of devices
> (eth1), gave it IP address: ifconfig eth1 192.168.2.0/24 and connected
> f9 laptop to it. On the laptop I activated eth0 with the same IP. The
> problem is: it doesn't work. I can't ping anything from the laptop
> except its own address (192.168.2.0). What should I do? Any help will be
> appreciated.
> Thanks in advance.
> -- 
> Hiisi.
> 
First of all, 192.168.2.0 should not be assigned to a NIC on your
setup, because it is the network address, and has a special meaning.

Next, you do not want the F10 NIC and the laptop NICs to have the
same IP address. You probably want something like 192.168.2.1 for
the NIC on the F10 machine, and 192.168.2.2 for the F9 laptop. (I
don't know if both laptops are on the same NIC.)

You will also have to add routes on all the machines. If you have
configured ifcfg-eth0 correctly on the laptops, they will already
have the routes.

What you have to do on the F10 machine depends on how you have
things physically connected, and you have to provide more
information before we can address that.

For configuring the firewall, a program like firestarter will help a
lot.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux