Linux Router!!

Linux Router!!

Post by Goh Nam Kw » Tue, 14 Mar 1995 22:05:03



Hi, is anyone out there try to set up a router using Linux!

I'd try very hard to set it up but still fail!
Below is the topology of the LAN of my Linux Router.

161.142.8.0 (Netmask = 255.255.255.0)
________________________________________________________________
                        |
                        |
                ________|________  161.142.8.105
                | Linux Router  |
                |_______________|  161.142.9.105
                        |

                        |
        ________________|_______________________________________
                161.142.9.0 (Netmask = 255.255.255.0)

Below is the section of the file /etc/rc.d/rc.inet1

.
.
/sbin/ifconfig eth0 161.142.8.105 netmask 255.255.255.0 broadcast
161.142.8.255
/sbin/ifconfig eth1 161.142.9.105 netmask 255.255.255.0 broadcast
161.142.8.255
.
.
/sbin/route add -net 161.142.8.0 netmask 255.255.255.0
/sbin/route add -net 161.142.9.0 netmask 255.255.255.0 dev eth1
.

note: this is a standalone network and it's no gateway.
Now, I can ping from the hosts on the network 161.142.9.0 to
161.142.8.105 but not to any other host on the network 161.142.8.0
The same for vice-versa.

I'm not running any router or gateway on the Linux.

Can anyone help me up about this?

Thanx!

regrds,
nkgoh
p/s I have problem to access to the usenet, if possible pls e-mail to me.
thank.
--
Goh Nam Kwan
Science University of Malaysia
11800 Penang, Malaysia

 
 
 

Linux Router!!

Post by Jorge Rodriguez Bring » Wed, 15 Mar 1995 18:40:52



: Hi, is anyone out there try to set up a router using Linux!

: I'd try very hard to set it up but still fail!
: Below is the topology of the LAN of my Linux Router.

: 161.142.8.0 (Netmask = 255.255.255.0)
: ________________________________________________________________
:                         |
:                         |
:                 ________|________  161.142.8.105
:                 | Linux Router  |
:                 |_______________|  161.142.9.105
:                         |

:                         |
:         ________________|_______________________________________
:                 161.142.9.0 (Netmask = 255.255.255.0)

: Below is the section of the file /etc/rc.d/rc.inet1

: .
: .
: /sbin/ifconfig eth0 161.142.8.105 netmask 255.255.255.0 broadcast
: 161.142.8.255
: /sbin/ifconfig eth1 161.142.9.105 netmask 255.255.255.0 broadcast
: 161.142.8.255
: .
: .
: /sbin/route add -net 161.142.8.0 netmask 255.255.255.0
: /sbin/route add -net 161.142.9.0 netmask 255.255.255.0 dev eth1
: .

: note: this is a standalone network and it's no gateway.
: Now, I can ping from the hosts on the network 161.142.9.0 to
: 161.142.8.105 but not to any other host on the network 161.142.8.0
: The same for vice-versa.

: I'm not running any router or gateway on the Linux.

: Can anyone help me up about this?

: Thanx!

I have it done
You must run gated (i prefer rather than routed) in order to
route packets from one network to another.
hope this help.
--
---------------------------------
Jorge Rodriguez Bringas        
Dep. Ing. Quimica  
Fac. Ciencias ,Valladolid (SPAIN)

---------------------------------

 
 
 

Linux Router!!

Post by Leon Gar » Sun, 19 Mar 1995 14:07:55




>: Hi, is anyone out there try to set up a router using Linux!
>: I'd try very hard to set it up but still fail!
>: Below is the topology of the LAN of my Linux Router.
>: 161.142.8.0 (Netmask = 255.255.255.0)
>: ________________________________________________________________
>:                         |
>:                         |
>:                 ________|________  161.142.8.105
>:                 | Linux Router  |
>:                 |_______________|  161.142.9.105
>:                         |
>:                         |
>:         ________________|_______________________________________
>:                 161.142.9.0 (Netmask = 255.255.255.0)
>: Below is the section of the file /etc/rc.d/rc.inet1
>: .
>: .
>: /sbin/ifconfig eth0 161.142.8.105 netmask 255.255.255.0 broadcast
>: 161.142.8.255
>: /sbin/ifconfig eth1 161.142.9.105 netmask 255.255.255.0 broadcast
>: 161.142.8.255
>: .
>: .
>: /sbin/route add -net 161.142.8.0 netmask 255.255.255.0
>: /sbin/route add -net 161.142.9.0 netmask 255.255.255.0 dev eth1
>: .
>: note: this is a standalone network and it's no gateway.
>: Now, I can ping from the hosts on the network 161.142.9.0 to
>: 161.142.8.105 but not to any other host on the network 161.142.8.0
>: The same for vice-versa.
>: I'm not running any router or gateway on the Linux.
>: Can anyone help me up about this?
>: Thanx!
>I have it done
>You must run gated (i prefer rather than routed) in order to
>route packets from one network to another.

you do NOT have to run gated or routed.

the setup listed looks ok,
but it looks like  the kernel is acting like a firewall.
The standard kernels do not implement IP forwarding, so
one should configure and compile one's own kernel,
with the firewall option off and the ip forwarding option on.

leon

--



 
 
 

1. linux router Vs Linksys Router

Any body had experience of both a standalone router (eg d-link/linksys 4port
switch and router integrated into 1 box) Vs old 486 with a flavour of linux
acting as a router with a hub/switch to share a DSL connection?

You can get the former for about 50GBP and it seams a lot less of a pain to
set up and use.

Comments?

Cheers
Stu

2. strace for AIX???

3. Linux router vs Netopia router on DSL

4. mount /cdrom --> /cdrom is busy (Solaris 7)

5. Linux Router Project (LRP): Make just a router ???

6. Kernel question...

7. Suse Linux Router hinter Cisco Router ???

8. FIC VA503+, K6-2

9. Cisco router or Linux router ?

10. Cable modem with Linux Router Project & Fireplug Edge Router - help with wierd ports!

11. Linux Router or Cisco Router for Small Office Internet Line

12. Linux Router vs. Linux Firewall

13. Questions about network Structure Linux using Linux Router/Firewall