How to use suse linux as a small router
Posted
by
Mingo
on Server Fault
See other posts from Server Fault
or by Mingo
Published on 2011-06-23T23:02:17Z
Indexed on
2011/06/24
0:24 UTC
Read the original article
Hit count: 567
I has 2 subnet 192.168.1.0/24 and 192.168.2.0/24 and one suse linux, the linux has 2 interface, eth0 and eth1. I want to configurate the suse linux as a router so that make these 2 subnet can communicate with each other.
This is my steps:
1.set the linux eth0 ip as 192.160.1.254,eth1 ip 192.168.2.254
2.add route in linux:
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0 route add -net 192.168.2.0 netmask 255.255.255.0 dev eth1
3.set 192.168.1.0/24 gw as 192.168.1.254,and 192.168.2.0/24 gw as 192.168.2.254
I am not sure this will work or not? or some step i missing?
© Server Fault or respective owner