Linux / UNIX Tech Support Forum
This is a discussion on Routing within the Linux software forums, part of the Linux Getting Started category; Dear All, I want to isolate my existing network. supoose i have existing network as 192.168.1.0/24 and i want to ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Dear All,
I want to isolate my existing network. supoose i have existing network as 192.168.1.0/24 and i want to isolate it as 192.168.2.0. I have used linux based router for this purpose. i.e. two network cards. one card for 192.168.1.0 and second card for 192.168.2.0. but still i am not able to access the PC's from two different networks. I have keep value for net.ipv4.ip_forward = 1 in kernel sysctl configuration file. Also route command shows following : Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 * 255.255.255.0 U 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.1.90 0.0.0.0 UG 0 0 0 eth0 Thanks & Regards, Raju |
| Sponsored Links | ||
|
|
|
|||
|
Hello rajuk,
You need to type or use iptables commands, then only it will route. Code:
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD --in-interface eth1 -j ACCEPT |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Routing/copying data from eth0 and send over eth1 and eth2 | theVOID | Networking, Firewalls and Security | 2 | 14-04-2008 05:02 PM |
| Routing tables flushed | milank | Linux hardware | 3 | 24-12-2007 11:51 AM |
| Routing Tables flushed | milank | CentOS / RHEL / Fedora | 0 | 05-11-2007 11:26 PM |