<div dir="ltr"><br><br><div class="gmail_quote">2009/12/14 Adel ESSAFI <span dir="ltr"><<a href="mailto:adelessafi@gmail.com">adelessafi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote">2009/12/14 Andrew Haley <span dir="ltr"><<a href="mailto:aph@redhat.com" target="_blank">aph@redhat.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>Adel ESSAFI wrote:<br>
> Hi list<br>
> This is the first time I have to configure linux as router.<br>
> I have a single network card for which I gave to IPs<br>
><br>
> eth0      Link encap:Ethernet  HWaddr 00:11:5B:72:7F:D9<br>
>           inet addr:41.231.X.Y  Bcast:41.255.255.255  Mask:255.255.255.0<br>
>           inet6 addr: fe80::211:5bff:fe72:7fd9/64 Scope:Link<br>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
>           RX packets:2595 errors:0 dropped:0 overruns:0 frame:0<br>
>           TX packets:2295 errors:0 dropped:0 overruns:0 carrier:0<br>
>           collisions:0 txqueuelen:1000<br>
>           RX bytes:1876353 (1.7 MiB)  TX bytes:328059 (320.3 KiB)<br>
>           Interrupt:21 Base address:0x8000<br>
><br>
> eth0:1    Link encap:Ethernet  HWaddr 00:11:5B:72:7F:D9<br>
>           inet addr:192.168.10.10  Bcast:192.168.10.255  Mask:255.255.255.0<br>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
>           Interrupt:21 Base address:0x8000<br>
><br>
><br>
><br>
><br>
> and this is the default route<br>
><br>
> [root@routeur ~]# route<br>
> Kernel IP routing table<br>
> Destination     Gateway         Genmask         Flags Metric Ref    Use<br>
> Iface<br>
> 41.231.2.0      *               255.255.255.0   U     0      0        0 eth0<br>
> 192.168.10.0    *               255.255.255.0   U     0      0        0 eth0<br>
> link-local      *               255.255.0.0     U     1002   0        0 eth0<br>
> default         41.231.2.81     0.0.0.0         UG    0      0        0 eth0<br>
><br>
<br>
</div></div>That looks alright.<br>
<div><br>
> The problem now, is when I configure a PC with an IP adress 192.168.10.X<br>
> and I put the gateway as 192.168.10.10, I do not succeed to ping any PC. How<br>
> can I route all the packages from eth0:1 to eth0??<br>
<br>
</div>This isn't making very much sense.<br>
<br>
What is the address of your gateway?  If it is 41.231.2.81, then it makes no<br>
sense to move it to the 192.168.10 network.<br></blockquote><div> </div></div></div><div>Well, I have no great experience with routing  but I am in an internet café where I have a limited number of addresses.<br><br>so  my logical configuration is as follows<br>

<br><br>ISP  -- ROUTER   41.231.2.81 <--LAN--> 41.231.2.83 My SERVER 192.168.10.10  <--- LAN --> CLients 102.168.10.X  <br><br>I hope with that figure things are more precise<br></div></div></div></blockquote>
<div><br><br>Hi<br>I just need to route packages! I don t need to filter nor to make firewall<br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div class="gmail_quote"><div> <br>Thanks for help<br><br><br>
<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
If you're trying to set up a local network with NAT forwarding, then there's<br>
more to do.<br>
<font color="#888888"><br>
Andrew.<br>
</font><div><div></div><div><br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com" target="_blank">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br>
</div></div></blockquote></div></div><br><br clear="all"><div class="im"><br>-- <br><a href="http://ilovefedora.blogspot.com/" target="_blank">http://ilovefedora.blogspot.com/</a><br><br>-- <br><br>PhD candidate in Computer Science<br>
Address       <br>BP 108, Bureau de poste Tunis republique <br>
1001 Tunis<br>Tunisia<br>tel: +216 97 246 706<br>fax: +216 71 391 166<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://ilovefedora.blogspot.com/">http://ilovefedora.blogspot.com/</a><br><br>-- <br><br>PhD candidate in Computer Science<br>Address       <br>BP 108, Bureau de poste Tunis republique <br>
1001 Tunis<br>Tunisia<br>tel: +216 97 246 706<br>fax: +216 71 391 166<br>
</div>