Setting up route on subnet


 
Thread Tools Search this Thread
Operating Systems Solaris Setting up route on subnet
# 1  
Old 08-04-2006
Setting up route on subnet

I was told this worked on an HP system (same network as the sun server I am trying to set this up on)> but I get "netmask: bad value"2when I try it on the Sun:

route add net 199.42.23.192 netmask 255.255.255.192 204.104.63.30 1

I've tried many different iterations (leaving out netmask, only setting up route to net 199.42.23.0, direct route to IP address I am trying to get to, etc.), but am having no luck.

Any ideas?

TIA

- Matt
# 2  
Old 08-17-2006
Not sure about it, but I've used this iteration on a couple different UNIX and Linux variants -- it's worth a try!!!

route add 199.42.23.192/26 204.104.63.30 1

*** p.s. -- it may also be expecting an interface for the route like lan0 ...


Lots of luck!
# 3  
Old 08-18-2006
Going by memory here Smilie
I have no idea how your subnets are set, but just by looking at the IP addresses/netmask in your post, you cannot get from the 204. subnet to the 199. subnet without going through a subnet gateway first.
You'll have to have 2 entries: one that points interface 204. to its default route, then another that points 204. to the 199. network.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

2. Shell Programming and Scripting

Get all ip address from subnet mask

I have this subnet file shown below. How can I calculate all ip addresses from that list 103.22.200.0/22 141.101.64.0/18 10.0.0.0/22I need to be able to read the subnet file and print all IPs in those subnet to an out put file (3 Replies)
Discussion started by: e_mikey_2000
3 Replies

3. Red Hat

How to expose a box on the 63.x subnet with a route to the 192?

Hi all, I'm trying to expose a CentOS box on the 63.x subnet with a route to the 192 as our firewall doesn't allow a VPN. Would someone please let me know how I can do this? Thanks (0 Replies)
Discussion started by: tezarin
0 Replies

4. IP Networking

2 ip from one subnet my isp

Hi. my english is not so good. sorry. i have some problem. My isp give me second ip from subnet. One network is working, but secong don't. fxp0 - my network dc0 - network isp (that working) re0 - network isp (don't working) i try use ng_one2many, but it's don't working ngctl mkpeer... (0 Replies)
Discussion started by: kil
0 Replies

5. IP Networking

How many hosts per subnet

What would be a realistic number of hosts in a 100BaseT network, before you have to start thinking on subnetting further? Or in another words. How many hosts would you keep in the same broadcast domain? In a 100BaseT network, with subnet 10.20.20.0/24, I could have 254 hosts as part of the same... (3 Replies)
Discussion started by: Aia
3 Replies

6. IP Networking

How do I figure out the subnet?

Hi, How do I get subnet from this: 10.252.0.138/25 Tnx (2 Replies)
Discussion started by: mehrdad68
2 Replies

7. IP Networking

Migrating existing Subnet to a new subnet and changing ip addresses in UNIX

Hi, My project needs to migrate the existing Subnet (255.255.255.0) to a new subnet and change the ipaddresses (currently C class). How can I do that. I need some information. John (0 Replies)
Discussion started by: johnmarsh
0 Replies

8. IP Networking

add route to a subnet - Solaris 2.6

WE are running Unix - Solaris 2.6, we create a subnet. In the windows enviroment we are able to add a static route by using route add -p 172.16.10.0 mask 255.255.255.0 172.16.17.224, but when we add the route in Solaris as route add -net 172.16.10.0 255.255.255.0 172.16.17.224, we receive an... (5 Replies)
Discussion started by: cassy
5 Replies

9. Solaris

setting a route in Solaris

I am having problems getting this to work, though it seems like it would be simple. I have a host with 2 interfaces, hme0 (192.168.0.132) for the primary interface, and hme1 (192.168.0.16) for backups. I want it to talk to the backup host, which is 192.168.0.21, across the hme1 interface. Thanks (2 Replies)
Discussion started by: 98_1LE
2 Replies

10. IP Networking

Subnet mask

Hi, I have about 30 computers for users with subnet mask x.x.x.0, and 25 computers for workers with s.m. x.x.x.128. My server has a s.m. x.x.x.128 so with workers computers I can see my server and all the computers in that s.m., but I can't see the server from the users computers and I need to see... (7 Replies)
Discussion started by: Z0DiaC
7 Replies
Login or Register to Ask a Question