I don't think that it makes sense to configure a router with one physical network card. If another PC on the same cable segment tries to reach something it needs a router that has connection with more than the same network cable.<br>
<br>greetings, paul<br><br><div class="gmail_quote">2009/12/13 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">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 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>The problem now, is when I configure a PC with an IP adress 192.168.10.X and I put the gateway as 192.168.10.10, I do not succeed to ping any PC. How can I route all the packages from eth0:1 to eth0??<br>
<br><br>note that I have configured the ip forward. <br><br>echo 1> /proc/sys/net/ipv4/ip_forward<br><br>Can you help me please.<br><br>regards<br><br><br><br><br clear="all"><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>
<br>--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">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></blockquote></div><br>