Re: linux as router



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.

greetings, paul

2009/12/13 Adel ESSAFI <adelessafi@xxxxxxxxx>

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:41.255.255.255 Mask:255.255.255.0
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:192.168.10.10 Bcast:192.168.10.255 Mask:255.255.255.0
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
41.231.2.0 * 255.255.255.0 U 0 0 0
eth0
192.168.10.0 * 255.255.255.0 U 0 0 0
eth0
link-local * 255.255.0.0 U 1002 0 0
eth0
default 41.231.2.81 0.0.0.0 UG 0 0 0
eth0


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??


note that I have configured the ip forward.

echo 1> /proc/sys/net/ipv4/ip_forward

Can you help me please.

regards





--
http://ilovefedora.blogspot.com/

--

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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines:
http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Relevant Pages

  • Re: linux as router
    ... If another PC on the same cable segment tries ... This is the first time I have to configure linux as router. ... I have a single network card for which I gave to IPs ... One problem though is that iptables does not recognize aliases (like ...
    (Fedora)
  • RE: Rediscovering my internet connection.
    ... > have eth0 as the network card): ... > set to the IP address of the router. ... as root issue the command ...
    (RedHat)
  • Re: Port Forwarding on same network card
    ... A new network - do you speak of one additional network card in each ... routing from eth0 to eth0. ... Is there no way in the iptables or routing ...
    (comp.os.linux.security)
  • Re: Cannot connect to RWW from home PC
    ... eth0 172.26.0.1/16 Extra none ... That would be the address you need a DNS record for. ... One question - if I reset the Thomson Router will that clear all the ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect to RWW from home PC
    ... No 10.0.0.138 is the address used to log onto Thomson's router to make the ... On the DNS question I can add an MX record in the DNS area of GoDaddy's ... eth0 172.26.0.1/16 Extra none ... Heres' the info for our server: ...
    (microsoft.public.windows.server.sbs)