1834394 Members
1772 Online
110066 Solutions
New Discussion

Re: Adding a route

 
SOLVED
Go to solution
Gary Sanchez
New Member

Adding a route

I am trying to add a route on a 10.2 machine, I get the error "network unreachable", for some reason I can't get the subnet to add, I have tried editing the netconf file, but to no avail. Here is what I am adding:
ifalias lan0 addmask 255.255.255.248 172.20.17.172
route add 65.215.140.0 255.255.252.0 172.20.17.171

I tried adding the 'net' in front of the 65 address, but it didn't work. I have applied the PHNE_12492 for the alias command, but I think that I must be doing something wrong. Help!
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Adding a route

What if you do:

# route add net 65.215.140.0 172.20.17.171 1
Gary Sanchez
New Member

Re: Adding a route

I am adding an OCLM modem to external sites so I can dial in, actually using telnet, to run that particular sites java application remotely, when I add the route that way, without the subnet, it defaults the subnet to 255.255.255.255, and I cannot use the modem. So the answer is, yes, I have tried that, thanks for the input though!
Steven Gillard_2
Honored Contributor

Re: Adding a route

You need to specify the keyword 'netmask':

# route add 65.215.140.0 netmask 255.255.252.0 172.20.17.171 1

Regards,
Steve
Gary Sanchez
New Member

Re: Adding a route

OK, I removed all of the old routes, and put the line:
route add net 65.215.140.0 netmask 255.255.252.0 171.20.17.171 1 into the system, it looks the same as before, and I still can't ping the 171 address, I will test it again but, shouldn't I be able to ping the 171 ip address? On other sites, non 10.2, I can ping and telnet right into the modem after setting up the route.
Gary Sanchez
New Member

Re: Adding a route

It worked! I guess you don't have to be able to ping or telnet from the host, although I am not sure how it works now but....I can dial in now, and I will try and figure out how to "talk" to that modem from their host later, thanks for the help!