RE: How to configure a network?

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

 



First, you have to open the IP forwarding of the box with the two network cards. Then you have to add route using route add command gw option to 192.168.10.x network on each box that has to pass through.

It is something like;

route add -Host 172.24.4.x gw 192.168.10.1 for each box

But every time the machines reboot you have to do it, so to avoid, put in an startup script. (note:If there are switches routers in between the networks you want to reach these you have to configure also, for back forwarding but in your case no need.)

Serdar Sevengör 





-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Sachin Rane
Sent: 06 Şubat 2006 Pazartesi 06:58
To: redhat-list@xxxxxxxxxx
Subject: How to configure a network?

Hi,

 

I have a machine (say "MyBridge #1") with 2 network card.

The first network card is connected to "172.24.4.0" network with IP
address '172.24.4.16' and another one is connected to "192.168.10.0"
with IP address '192.168.10.1'.

I wanted this machine to be acted as a router/ bridge/ gateway (I am not
very clear about the exact term).

I wanted any machine present on "172.24.4.0" network can reach machine
present on network "192.168.10.0".

 

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

So here the list of 'route' present on the machine 'MyBridge'.

 

[root@'MyBridge' kiran]# route

Kernel IP routing table

Destination        Gateway           Genmask                      Flags
Metric Ref    Use            Iface

172.24.4.16       *                       255.255.255.255            UH
0      0        0                 eth0

192.168.10.1     *                       255.255.255.255            UH
0      0        0                 eth1

172.24.4.0         172.24.4.1         255.255.255.0                UG
0      0        0                 eth0

172.24.4.0         *                       255.255.255.0
U          0      0        0                 eth0

192.168.10.0     192.168.10.1    255.255.255.0                UG       0
0        0                 eth1

192.168.10.0     *                       255.255.255.0                U
0      0        0                 eth1

192.168.10.0     *                       255.255.255.0                U
0      0        0                 eth1

169.254.0.0       *                       255.255.0.0
U          0      0        0                 eth1

default               172.24.4.1         0.0.0.0
UG       0      0        0                 eth0

 

 

I have set the flag "net.ipv4.ip_forward = 1" in file "/etc/sysctl.conf
"of machine 'MyBridge'.

 

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

 

Here is the 'route' present on machine (say 'Client #1') with IP
address.

 

[root@Client #1 Ananth]# /sbin/routeKernel IP routing table

Destination        Gateway           Genmask         Flags    Metric
Ref    Use          Iface

172.24.4.0         *                       255.255.255.0   U          0
0        0             eth0

192.168.10.0     172.24.4.16       255.255.255.0   UG       0          0
0             eth0

169.254.0.0       *                       255.255.0.0       U          0
0        0             eth0

default               172.24.4.1         0.0.0.0              UG       0
0        0             eth0

 

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

 

I can ping from 'Client #1' to machine "MyBridge #1" on both IP
('172.24.4.16' and '192.168.10.1').

But I cannot ping other machines present on network "192.168.10.0" from
Client#1 e.g 192.168.10.2.

 

 

Thanks and Regards,

Sachin Rae

#########################################################
THIS EMAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED
RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND PRIVILEGED
INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR
DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS
PLEASE CHECK FOR VIRUSES AND DEFECTS.IF YOU ARE NOT THE
INTENDED RECIPIENT, PLEASE NOTIFY US IMMEDIATELY BY REPLY
E-MAIL AND DELETE THE ORIGINAL MESSAGE.
##########################################################

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux