route add : network is unreachable


 
Thread Tools Search this Thread
Operating Systems Solaris route add : network is unreachable
# 1  
Old 07-08-2010
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

Code:
root@ColectorDMSCNT # route add net 200.44.46.0/24 161.196.84.196 1
add net 200.44.46.0/24: gateway 161.196.84.196: Network is unreachable
root@ColectorDMSCNT # ping 161.196.84.196
161.196.84.196 is alive
root@ColectorDMSCNT # traceroute 161.196.84.196
traceroute: Warning: Multiple interfaces found; using 161.196.84.196 @ e1000g1
traceroute to 161.196.84.196 (161.196.84.196), 30 hops max, 40 byte packets
 1  Monitoreo (161.196.84.196)  0.286 ms  0.109 ms  0.106 ms
root@ColectorDMSCNT # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.119.64.6 netmask ffffff00 broadcast 10.119.64.255
        ether 0:14:4f:e4:3:18
e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 161.196.84.196 netmask ffffffc0 broadcast 161.196.84.255
        ether 0:14:4f:e4:3:19

My question is:

What is the problem on the command?

Thank in Advance
AG Smilie
# 2  
Old 07-08-2010
Going by that error message, you are using the wrong gateway address. The gateway you have used is not on a directly-connected network, you need to use the next-hop gateway instead.
Tornado
# 3  
Old 07-12-2010
remove the route & add it again by route add -net 200.44.46.0 -netmask 255.255.0.0 161.196.84.196 1
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Installadm - network in unreachable

Seems to wanboot ok but then fails to connect to server. What do I need to check? {0} ok boot net - install Boot device: /pci@300/pci@1/pci@0/pci@1/network@0 File and args: - install 1G link up <time unavailable> wanboot info: WAN boot messages->console <time unavailable>... (2 Replies)
Discussion started by: psychocandy
2 Replies

2. UNIX for Advanced & Expert Users

"Network error: No route to host" While connecting guest RHEL4 using putty

Hi, I have installed RHEL4 using vmware workstation.. Host OS: Windows XP Guest OS: RHEL4 Pls refer step 17 & 18 in below link... ORACLE-BASE - Red Hat Enterprise Linux 4 and Centos 4 Installation 1) If i choose to assign IP automatically (using DHCP) means, i am able to connect RHEL4... (3 Replies)
Discussion started by: thomasraj87
3 Replies

3. Linux

Samba: Network Route was not found

Assalam o Alaikum! After configuring and starting service of samba, when I access shared folder from windows XP it gives this error " Network Route was not found". My server IP 192.168.1.252, client is on same network. selinux is disabled smb,conf: workgroup = WORKGROUP server string =... (2 Replies)
Discussion started by: ukengr
2 Replies

4. Solaris

Network interface down after adding static route

Please , I have a problem I have add a statis route on Solaris 10, but after this, the network interface of Server was Offline. The system is in cluster mode (3.2) route add -net 10.10.1.128 -netmask 255.255.255.128 10.10.1.51 ------------------- lo0:... (1 Reply)
Discussion started by: Ruggero
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 new network interface Solaris 8

Hi there, I'm trying to configure an additional network interface on Solaris 8 (eri0). The interface has been activated, but all the frames are still routed to the current default interface (ce0) I've tried following command (with various syntaxes...) unsuccessfully so far: # route add... (2 Replies)
Discussion started by: sreiniche
2 Replies

7. Solaris

Had to bounce interface to add network route

Hi All, yesterday I was trying to add a network route to my solaris 8 host using 'route add'. Everytime I tried, I kept getting the response 'network is unreachable'. I was trying all kinds of different methods, however I eventually got it to work after bouncing the interface that I was... (2 Replies)
Discussion started by: badoshi
2 Replies

8. Red Hat

[tip] network route-eth0

hi, i would like to share this /etc/sysconfig/network-script/route-eth0 GATEWAY0=XXXXXX NETMASK0=XXXXXX ADDRESS0=XXXXXXX a delete route command with "route del -net xxxx...." will work but if the above exist and you reboot the linux then old route will be invoke on that config-route. ... (0 Replies)
Discussion started by: itik
0 Replies

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

10. IP Networking

Connect: Network is unreachable

I am running RH7.3 on a compaq presario box. The network card is a Linksys one. I am only able to communicate with the local network (only the local IPs are accessible). When I try to ping another box I get a "Connect: Network is unreachable" message. What could be the problem. Thanks in... (2 Replies)
Discussion started by: skotapal
2 Replies
Login or Register to Ask a Question