Route add probleme


 
Thread Tools Search this Thread
Special Forums IP Networking Route add probleme
# 1  
Old 08-14-2007
Route add probleme

I have a system that i want to reach via a vpn created vi a fierwall.The fierwall in an other system.
The ip i am trying to get to is 172.16.4.48
I need to get to it via the hme1 interface.
The vpn gateway has this ip 172.30.50.1
I need to clean up the routing table and make this work; or is it impossible

Here is the system info:

OS Solaris 5.10
Code:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 172.30.50.7 netmask ffffff00 broadcast 172.30.50.255
        ether 8:0:20:b0:16:98
hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 172.16.0.1 netmask ffffff00 broadcast 172.16.0.255
        ether 8:0:20:b0:16:98

Code:
# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.16.0.1           172.30.50.1          UGH       1      0
172.30.50.0          172.30.50.7          U         1    258  hme0
172.16.0.0           172.16.0.1           U         1      0  hme1
224.0.0.0            172.30.50.7          U         1      0  hme0
default              172.30.50.13         UG        1     19
127.0.0.1            127.0.0.1            UH       17    163  lo0


Smilie Waterboy

Last edited by zazzybob; 08-14-2007 at 09:46 PM.. Reason: Link removed - code tags added
# 2  
Old 08-15-2007
on the line with hme1 interface you have :
Code:
Destination - 172.16.0.0       Gateway -     172.16.0.1           U         1      0  hme1

Since you want to reach the vpn gateway, which is 172.30.50.1, shouldn't this IP be stored as gateway ?
If you need to wipe out use :
Quote:
route [-v] [-A family] del [-net|-host] target [gw Gw] [netmask Nm] [metric N] [[dev] If]
# 3  
Old 08-15-2007
i deleted the route

i deteted the route

Code:
delete net 172.16.0.0: gateway 172.16.0.1
# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.16.0.1           172.30.50.1          UGH       1      0
172.30.50.0          172.30.50.7          U         1    554  hme0
224.0.0.0            172.30.50.7          U         1      0  hme0
default              172.30.50.13         UG        1     30
127.0.0.1            127.0.0.1            UH        6    186  lo0

Now i try to ping the ip

Code:
# ping 172.16.4.48
ICMP Host Unreachable from gateway 142.161.195.149
 for icmp from clinidau (172.30.50.7) to 172.16.4.48

And tryed a trace.

Notice: i noted that it did not go out the correct interface.

Code:
# traceroute  172.16.4.48
traceroute: Warning: Multiple interfaces found; using 172.30.50.7 @ hme0
traceroute to 172.16.4.48 (172.16.4.48), 30 hops max, 40 byte packets
 1  205.200.254.2 (205.200.254.2)  2356.387 ms  2304.147 ms  1338.262 ms
 2  205.200.254.161 (205.200.254.161)  2020.312 ms  2334.031 ms 205.200.254.186 (205.200.254.186)  2318.462 ms
 3  142.161.195.149 (142.161.195.149)  2030.775 ms  2183.373 ms  2124.792 ms
 4  * 142.161.195.149 (142.161.195.149)  1234.453 ms !H *
 5  * 142.161.195.149 (142.161.195.149)  2005.185 ms !H *
 6  * * *
 7  * * 142.161.195.149 (142.161.195.149)  1984.646 ms !H
 8  142.161.195.149 (142.161.195.149)  1787.579 ms !H  1995.651 ms !H *

Then i did
Code:
route add 172.16.4.48 172.30.50.1 -interface 1

# ping 172.16.4.48
172.16.4.48 is alive

# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.16.4.48          172.30.50.1          UGH       1      0
172.16.0.1           172.30.50.1          UGH       1      0
172.30.50.0          172.30.50.7          U         1    560  hme0
224.0.0.0            172.30.50.7          U         1      0  hme0
default              172.30.50.13         UG        1     31
127.0.0.1            127.0.0.1            UH        6    186  lo0


# traceroute 172.16.4.48
traceroute: Warning: Multiple interfaces found; using 172.30.50.7 @ hme0
traceroute to 172.16.4.48 (172.16.4.48), 30 hops max, 40 byte packets
 1  172.30.18.1 (172.30.18.1)  1.849 ms  1.128 ms  1.104 ms
 2  * * *
 3  * * *


i never get to my ip, and i still not using the hme1 interface.

How can i force the use of my hme1 interface with a gateway of 172.30.50.1 to reach 172.16.4.48

Last edited by waterboy; 08-15-2007 at 04:09 PM..
# 4  
Old 08-16-2007
Use Advance Routing command

Hi,
You can see Advance Routing How-To. "iproute2" is package which contains command "ip". "ip" is a greate magical command which can help you for many advance configurations. For your case I go for
ip route add 172.16.4.48 dev hme1 via 172.16.0.1

there is lot more to do with this ip command. Enjoy with
ip route help
# 5  
Old 08-16-2007
Your routing table is incorrect. You have not set up the table properly. Please review and get back to me with what you think might be wrong. Thanks.
# 6  
Old 08-17-2007
iproute2

Can anyone tell me where to find a clean iproute2 package for solaris 10?
I have look but i cannot find one for solaris 10.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Add explicit route

Add explicit route to 10.128.255.41/32 , gateway: 10.128.201.254 if not working, please try gateway through management port: 10.128.55.254 Just want to double confirm if this would be the correct command #route add -net 10.128.255.41/32 10.128.201.254 And if didnt work #route add... (1 Reply)
Discussion started by: Thilagarajan
1 Replies

2. Solaris

Couldn't add route on Solaris 10

Hi Solaris Experts, I am trying to add a routing table entry on our 5.1 Generic_144488-12 sun4v sparc Solaris 10 SUNW,SPARC-Enterprise-T5220 so that it is possible to ping 10.56.9.34 node # netstat -rnv IRE Table: IPv4 Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd ... (2 Replies)
Discussion started by: gjackson123
2 Replies

3. Solaris

Add route to solaris 10

I need to add a new route on solaris10 machine. I want that all traffic on the 23 port (telnet) use 192.168.200.1 gateway. How I do ? Thank you in advance. (1 Reply)
Discussion started by: arfry
1 Replies

4. Solaris

Add route to solaris10

Hi need to add 2 routes, one on each server. I know the route add comand but I have always been given the parameters to put in. I need a route in each of the 2 following servers to be able to ping and ssh between them. But how do i know which netmask to put in the route add command ? In... (6 Replies)
Discussion started by: vettec3
6 Replies

5. Solaris

route add : network is unreachable

Hey Guys: I am trying to add a route for assign a network interface to the traffic to/from a specific net, but allways to get the same system message : network is unreacheable root@ColectorDMSCNT # route add net 200.44.46.0/24 161.196.84.196 1 add net 200.44.46.0/24: gateway... (2 Replies)
Discussion started by: aggadtech08
2 Replies

6. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

7. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

8. HP-UX

Add Route on HP-UX v10.x, help.

Hi, My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13 I tried with: #route add 192.168.80.2 255.255.255.255 10.10.10.13 but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable I tried with... (4 Replies)
Discussion started by: efrenba
4 Replies

9. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

10. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies
Login or Register to Ask a Question