Add route to solaris10


 
Thread Tools Search this Thread
Operating Systems Solaris Add route to solaris10
# 1  
Old 09-09-2010
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 server4 i would like to use interface ce0
in server3 i would like to use interface ce1

I would apreciate very much if some one could explain how to do it
beacuse it`s a mystery to me.
Also the actual route add comand would be apreciated since im running out of time.

Below is actual config that does not permit ping between servers.
server4
Code:
netstat -nrv
   IRE Table: IPv4
    Destination             Mask           Gateway          Device Mxfrg Rtt   Ref Flg  Out  In/Fwd
  -------------------- --------------- -------------------- ------ ----- ----- --- --- ----- ------
  10.21.124.176        255.255.255.240 10.21.124.181        ce1     1500*    0   1 U     1988     0
  10.21.125.32         255.255.255.224 10.21.125.47         ce0     1500*    0   1 U   2218473     0
  10.6.4.0             255.255.255.192 10.21.124.177                1500*    0   1 UG      10     0
  10.21.124.0          255.255.255.0   10.21.124.177                1500*    0   1 UG       2     0
  224.0.0.0            240.0.0.0       10.21.125.47         ce0     1500*    0   1 U        0     0
  default              0.0.0.0         10.21.125.33                 1500*    0   1 UG      28     0
  127.0.0.1            255.255.255.255 127.0.0.1            lo0     8232*    0  64 UH  5319204     0

      # ifconfig -a
  lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
          inet 127.0.0.1 netmask ff000000
  ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
          inet 10.21.125.47 netmask ffffffe0 broadcast 10.21.125.63
          ether 0:3:ba:9:df:4c
  
  ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
          inet 10.21.124.181 netmask fffffff0 broadcast 10.21.124.191
          ether 0:3:ba:9:df:4c

server3

Code:
netstat -rnv
   
  IRE Table: IPv4
    Destination             Mask           Gateway          Device Mxfrg  Rtt  Ref Flg  Out  In/Fwd
  -------------------- --------------- -------------------- ------ ----- ----- --- --- ----- ------
  62.87.106.227        255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  77.209.8.21          255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  62.87.57.114         255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  77.209.25.64         255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  77.209.6.127         255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  10.21.125.41         255.255.255.255 10.6.129.1                   1500*    0   1 UGH   5220     0
  10.21.103.22         255.255.255.255 10.6.129.1                   1500*    0   1 UGH    700     0
  172.21.140.90        255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  212.73.42.196        255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  172.21.140.0         255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  212.59.216.238       255.255.255.255 10.6.129.1                   1500*    0   1 UGH      0     0
  10.10.19.32          255.255.255.240 10.6.129.1                   1500*    0   1 UG       0     0
  10.21.125.32         255.255.255.224 10.6.129.1                   1500*    0   1 UG       1     0
  10.6.131.160         255.255.255.224 10.6.129.1                   1500*    0   1 UG      10     0
  10.6.4.0             255.255.255.192 10.6.0.129                   1500*    0   1 UG   25011     0
  10.6.0.128           255.255.255.192 10.6.0.148           ce0     1500*    0   1 U     5930     0
  10.6.131.0           255.255.255.128 10.6.129.1                   1500*    0   1 UG     149     0
  172.21.184.0         255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  10.10.98.0           255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  10.10.198.0          255.255.255.0   10.6.129.1                   1500*    0   1 UG     224     0
  10.10.6.0            255.255.255.0   10.6.129.1                   1500*    0   1 UG    7763     0
  10.6.132.0           255.255.255.0   10.6.129.1                   1500*    0   1 UG    6726     0
  10.6.129.0           255.255.255.0   10.6.129.33          ce1     1500*    0   1 U    14534     0
  10.6.129.0           255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  10.6.130.0           255.255.255.0   10.6.129.1                   1500*    0   1 UG      27     0
  16.16.113.0          255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  172.24.1.0           255.255.255.0   10.6.129.1                   1500*    0   1 UG       1     0
  172.21.140.0         255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  172.20.32.0          255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  172.21.160.0         255.255.255.0   10.6.129.1                   1500*    0   1 UG       0     0
  172.16.0.0           255.240.0.0     10.6.129.1                   1500*    0   1 UG    1916     0
  224.0.0.0            240.0.0.0       10.6.0.148           ce0     1500*    0   1 U        0     0
  default              0.0.0.0         10.6.0.129                   1500*    0   1 UG    8490     0
  127.0.0.1            255.255.255.255 127.0.0.1            lo0     8232*    0 134 UH  55887045     0

      ifconfig -a
  lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
          inet 127.0.0.1 netmask ff000000
  ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
          inet 10.6.0.148 netmask ffffffc0 broadcast 10.6.0.191
          ether 0:14:4f:44:dc:94
  
  ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
          inet 10.6.129.33 netmask ffffff00 broadcast 10.6.129.255
          ether 0:14:4f:44:dc:94



Thanks to every one that takes time to respond.
/Jan
# 2  
Old 09-09-2010
you need to ask your network person for the correct netmask and gateway.
# 3  
Old 09-10-2010
You need the correct gateway to connect to the different vlan.
Most times this is a router or a system with router functions.
# 4  
Old 09-13-2010
From the routing table of server 3, I can see that it already has a route to the server4 ce0 interface.

10.21.125.32 255.255.255.224 10.6.129.1 1500* 0 1 UG 1 0

10.21.125.32 => 10. 21.125.0010 0000
255.255.255.224 => 255.255.255.1110 0000
-----------------------------------------------------------------
From the last 5 host bits, we should know that the network 10.21.125.32/27 implies that the host IPs are from 10.21.125.32 to 10.21.125.63.

So You only need to add a route server4.

server 4
route add host 10.6.129.33 <appropriate gateway>

from the output you have provided its not clear what the gateway should be. If you can provide a small network diagram(if not full picture, atleast the one that shows cabling between the 2 servers) I might be able to help.

Your ping is failing now because the packets from server3 will reach server4 but server4 will not know how to respond as it does not have a route to server3.

good luck
# 5  
Old 09-16-2010
Thanks for your input.

The route 10.21.125.32 255.255.255.224 10.6.129.1 in server 3 I put it there but Im not sure its correct I just took the min host as the gateway
and for netmask i guessed that i should use the same as for the ce0 interface of server3.

In server 4 I also have 2 networks for the gateway shouldnt i have to shoose any of the
min host for one of theese interfaces, or is it possible to have the gateway to be some other address.? I did try with
Code:
route add -net 10.21.125.32 -netmask 255.255.255.0 -gateway 10.6.129.1

but that did not work.

Thanks
# 6  
Old 09-17-2010
1) If you added this entry

code:
10.21.125.32 255.255.255.224 10.6.129.1 1500* 0 1 UG 1 0

You can use a 255.255.255.255 mask as, It wont hurt and you can get connectivity to the other server.

2) I am not sure what you mean by 'min host'.
3) On server4, you should use a gateway based on how your network is setup. I am not sure how your network looks. So I really cant tell you anything about that.
# 7  
Old 09-17-2010
Hi. by min host I meant the first host in each net.
I belive that as a rule of thumb the first host in each net is a gateway ?
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. Linux

Add persistent route in cent os 6.5

Hi , I have cent os 6.5 and am trying to make few routes permanent for bond: i have added two routes using below two commands : /sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.59.160.128 /sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 49.44.52.90 post which route command output is... (5 Replies)
Discussion started by: omkar.jadhav
5 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

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

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

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

7. IP Networking

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... (5 Replies)
Discussion started by: waterboy
5 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