add route to a subnet - Solaris 2.6


 
Thread Tools Search this Thread
Special Forums IP Networking add route to a subnet - Solaris 2.6
# 1  
Old 08-22-2003
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 error message that says
add net 172.16.10.0: gateway 255.255.255.0: network is unreachable.

The 172.16.17.224 is a router used as the gateway to the subnets, however we are to ping 172.16.17.224 from Solaris.

Any idea why we cannot add a route to that subnet in Solaris 2.6?
# 2  
Old 08-22-2003
I solved my problem by using
route add -net 172.16.16.0 172.16.17.224
leaving the subnet mask out and it work fine.
# 3  
Old 09-01-2003
man route should have shown you the correct possition of your gateway and subnetmask Smilie

Normaly you define your broacast as 0xffffff00 in solaris.

It's ok, always confusing Smilie


Regs David
# 4  
Old 04-15-2004
In my organisation, I have a private LAN (10.x.x.x) and a public LAN (172.x.x.x).
Machine in private LAN need to grep CAD license from public LAN.
I use the same method as what Cassy did on my Sun Machine and the settings is gone once the system reboots.

Any suggestion, how can I set the settings perm.

do we use the same methd on HPUX as well?
# 5  
Old 04-15-2004
You can add a new startup script to /etc/rc2.d/ or /etc/rc3.d/ - see creating and using init.d/rc*.d startup scripts
# 6  
Old 04-16-2004
I used to use some thing like
route add 10.99.101.0/24 10.99.101.1

On solaris you can add it in /etc/rc2.d/S72inetsvc or you can create a new script in the startup script directories
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris 2nd nic for different subnet

posted this on the other sub-forum https://www.unix.com/unix-for-dummies-questions-and-answers/246504-solaris-11-2nd-nic-different-subnet.html apologies if linking is not appropriate Thanks for your help. (0 Replies)
Discussion started by: ad101
0 Replies

2. Solaris

Solaris 11 2nd nic for different subnet

I have a Solaris 11 machine with 2 network cables attached. The first one is the default route and is working okay. I am trying to activate the second on another subnet, but am sure missing something. The first one is on 10.30.128. and with it everything works fine, but when I try to add the... (0 Replies)
Discussion started by: ad101
0 Replies

3. 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

4. Solaris

Changing the subnet mask on solaris 10

Hello, can anyone help me with the command to change the subnet mask on solaris 10? The mask is currently 255.255.255.255 I will like to change it to 255.255.2555.0. Thank you (5 Replies)
Discussion started by: cjashu
5 Replies

5. 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

6. 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

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. Solaris

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... (2 Replies)
Discussion started by: nhmeanie
2 Replies
Login or Register to Ask a Question