Tuesday 21 February 2012

Add new route to connect to another network

My VM Linux  IP  is 172.18.25.191  and I want to get the remotely shared files  from  my Windows-box://172.18.24.235/Shared   using samba share :  smb://172.18.24.235 :

These are the steps i have followed to make it work:
Steps  extracted from this link to  do it in our  RHEL 6 VM:  (  allowing  172.18.25.*  ip addresses  machines to   reach   172.18.24.*  network )

1.ifconfig eth1 down  ( First make the eth0/eth1 down, i have eth1 configured by default)

2.route -n   :  shows all gateways to destinations

3.ifconfig eth1 172.18.24.0 netmask 255.255.254.0 up

4.route -n   :  verify

5.route add default gw 172.18.24.254

6.route -n  : verify

[root@rhel6 ~]# route -n
Kernel IP routing table
Destination     Gateway            Genmask         Flags  Metric  Ref    Use  Iface
172.18.24.0     0.0.0.0             255.255.254.0   U     1          0        0     eth1
0.0.0.0            172.18.24.254   0.0.0.0            UG    0         0         0     eth1
0.0.0.0            172.18.24.1      0.0.0.0            UG    0         0         0     eth1

Here is a good article on  routes, gateways and ips.

No comments:

Post a Comment

Tweets by @sriramperumalla