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

Re: linux as router

2009/12/14 Andrew Haley <aph redhat com>
Adel ESSAFI wrote:
> Hi list
> This is the first time I have to configure linux as router.
> I have a single network card for which I gave to IPs
> eth0      Link encap:Ethernet  HWaddr 00:11:5B:72:7F:D9
>           inet addr:41.231.X.Y  Bcast:  Mask:
>           inet6 addr: fe80::211:5bff:fe72:7fd9/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2595 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2295 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:1876353 (1.7 MiB)  TX bytes:328059 (320.3 KiB)
>           Interrupt:21 Base address:0x8000
> eth0:1    Link encap:Ethernet  HWaddr 00:11:5B:72:7F:D9
>           inet addr:  Bcast:  Mask:
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:21 Base address:0x8000
> and this is the default route
> [root routeur ~]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
>      *        U     0      0        0 eth0
>    *        U     0      0        0 eth0
> link-local      *          U     1002   0        0 eth0
> default         UG    0      0        0 eth0

That looks alright.

> The problem now, is when I configure a PC with an IP adress 192.168.10.X
> and I put the gateway as, I do not succeed to ping any PC. How
> can I route all the packages from eth0:1 to eth0??

This isn't making very much sense.

What is the address of your gateway?  If it is, then it makes no
sense to move it to the 192.168.10 network.
Well, I have no great experience with routing  but I am in an internet café where I have a limited number of addresses.

so  my logical configuration is as follows

ISP  -- ROUTER <--LAN--> My SERVER  <--- LAN --> CLients 102.168.10.X 

I hope with that figure things are more precise
Thanks for help


If you're trying to set up a local network with NAT forwarding, then there's
more to do.




PhD candidate in Computer Science
BP 108, Bureau de poste Tunis republique
1001 Tunis
tel: +216 97 246 706
fax: +216 71 391 166

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