<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Don’t you need to have your 2<sup>nd</sup> interface be
physical, not an alias?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
redhat-sysadmin-list-bounces@redhat.com
[mailto:redhat-sysadmin-list-bounces@redhat.com] <b>On Behalf Of </b>Adel
ESSAFI<br>
<b>Sent:</b> Wednesday, December 16, 2009 8:46 AM<br>
<b>To:</b> redhat-sysadmin-list@redhat.com<br>
<b>Subject:</b> ip forward<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal><br clear=all>
Hi list<br>
In my school, I need to have a PC that act like router since I have not public
addresses.<br>
<br>
I have followed many link (<a
href="http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/"
target="_blank">http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/</a>,
the doc of fedora ....).<br>
All tell the same thing.<br>
<br>
Unfortunally, When I follow them, I have no results! When I ping an
adsress from a windows PC (192.168.10.7) I have no response.<br>
<br>
here is my configuration.<br>
<br>
Can you help plz<br>
<br>
Regards<br>
ps: I am on fedora 10 and iptables is disabled.<br>
<br>
<br>
<br>
<br>
<br>
<br>
[root localhost ~]# ifconfig <br>
eth0 Link encap:Ethernet HWaddr
00:18:8B:DB:7E:9E <br>
inet
addr:41.229.61.107 Bcast:41.229.61.255 Mask:255.255.255.0<br>
inet6 addr:
fe80::218:8bff:fedb:7e9e/64 Scope:Link<br>
UP BROADCAST RUNNING
MULTICAST MTU:1500 Metric:1<br>
RX packets:3183 errors:0
dropped:0 overruns:0 frame:0<br>
TX packets:3256 errors:0
dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:1000 <br>
RX bytes:872353 (851.9
KiB) TX bytes:476139 (464.9 KiB)<br>
Interrupt:17 <br>
<br>
eth0:1 Link encap:Ethernet HWaddr
00:18:8B:DB:7E:9E <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:17 <br>
<br>
lo Link encap:Local Loopback <br>
inet
addr:127.0.0.1 Mask:255.0.0.0<br>
inet6 addr: ::1/128
Scope:Host<br>
UP LOOPBACK RUNNING
MTU:16436 Metric:1<br>
RX packets:16623
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:16623
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0 <br>
RX bytes:495159 (483.5
KiB) TX bytes:495159 (483.5 KiB)<br>
<br>
[root localhost ~]# route <br>
Kernel IP routing table<br>
Destination
Gateway
Genmask Flags Metric
Ref Use Iface<br>
41.229.61.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.229.61.65
0.0.0.0 UG
0 0 0
eth0<br>
[root localhost ~]# iptables<br>
iptables v1.4.3.2: no command specified<br>
Try `iptables -h' or 'iptables --help' for more information.<br>
[root localhost ~]# cat /etc/sysctl.conf <br>
# Kernel sysctl configuration file for Red Hat Linux<br>
#<br>
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and<br>
# sysctl.conf(5) for more details.<br>
<br>
# Controls IP packet forwarding<br>
net.ipv4.ip_forward = 1<br>
<br>
# Controls source route verification<br>
net.ipv4.conf.default.rp_filter = 1<br>
<br>
# Do not accept source routing<br>
net.ipv4.conf.default.accept_source_route = 0<br>
<br>
# Controls the System Request debugging functionality of the kernel<br>
kernel.sysrq = 0<br>
<br>
# Controls whether core dumps will append the PID to the core filename.<br>
# Useful for debugging multi-threaded applications.<br>
kernel.core_uses_pid = 1<br>
<br>
# Added by Cinelerra RPM from RPM Fusion<br>
kernel.shmmax = 0x7fffffff<br>
<br>
<br>
<br>
<br clear=all>
<br>
-- <br>
<a href="http://ilovefedora.blogspot.com/" target="_blank">http://ilovefedora.blogspot.com/</a><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<o:p></o:p></p>
</div>
</div>
</body>
</html>