Default route is configured, but seem to not work


 
Thread Tools Search this Thread
Operating Systems Solaris Default route is configured, but seem to not work
# 1  
Old 06-28-2011
Default route is configured, but seem to not work

Hiya,
I got the default gateway set in /etc/defaultrouter file, however "netstat -nr" doesn't show anything like "default" in the routing table. As far as I know "netstat" on Solaris 10 u7 should show something like :

Code:
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              10.1.1.1         UG        1       2303

Also I can't ping any far end system on the internet, unless I add a explicit route like:
Code:
route add -host <IP> 10.1.1.1

Is there any known bug in Solaris which could have caused this ? Maybe I'm missing something in system config? Please help.
Cheers,
Tom
# 2  
Old 06-28-2011
have you restarted the machine?
# 3  
Old 06-28-2011
yes of course, but it didn't help for the problem
# 4  
Old 06-28-2011
Quote:
Originally Posted by TomSu
however "netstat -nr" doesn't show anything like "default" in the routing table.
This is expected. The "-n" option prevents adresses to be converted to names so "default" will never be displayed here, "0.0.0.0" will be instead.

Edit: Sorry. My previous statement is incorrect as far as Solaris netstat is concerned, even while its "-n" option is documented not to display symbolic names. On the other hand, Linux netstat displays "0.0.0.0" when "-n" is specified.

Last edited by jlliagre; 06-29-2011 at 02:29 AM.. Reason: Incorrect comment
# 5  
Old 06-28-2011
nope, I've just checked on other systems that "netstat -nr" produced in the output:
Code:
[server:/root] # netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              1.2.3.4         UG        1       2388

Note: I changed IP in the above output.
Also on the server when it doesn't work, there is no 0.0.0.0 as well as no "deafult"
Cheers,
Tom
# 6  
Old 06-28-2011
can you post how you go about adding the default route? silly to ask, but maybe the command was not successful. Smilie
# 7  
Old 06-28-2011
Wasn't me who setup this server, but I've checked that the default GW IP address is inside /etc/defaultrouter file. Isn't that enough to make it working? At least I do this when I setup networking on Solaris boxes and it always worked ok. That is why I like Solaris Smilie but on this particular system something must be messed up as it is not inserting deafult GW IP from the file into the routing table when the system boots up.
But I don't know what else to check ? I've searched /var/adm/messages file to check what was going on since last reboot, but I did not notice anything unusual..
Regards,
Tom
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

IP Route add default and make permanet

Hi all, actually i'm facing this problem, we have 2 NICs on our VM.s with REDHAT 7.2 release, we made the following set up as we needed to access them from both IP ip route flush all ip route add 10.130.11.0/24 dev eno2 tab 1 ip route add 10.130.10.0/24 dev eno1 tab 2 ip route add... (0 Replies)
Discussion started by: charli1
0 Replies

2. Solaris

Default route in system

Hi All Recently we have faced issue in SUN server after reboot of node 2 default routs has been added to system as below IRE Table: IPv4 **Destination*************Mask***********Gateway**********Device Mxfrg Rtt***Ref Flg**Out**In/Fwd* -------------------- ---------------... (2 Replies)
Discussion started by: aaysa123
2 Replies

3. AIX

Default Route add fails

AIX version 5.3 when I try to add default gateway # route add 0 192.168.100.254 Or # route add default 192.168.100.254 I get the error 0821-275 route: socket: The file access permissions do not allow the specified action. searching on google i came across similar... (5 Replies)
Discussion started by: filosophizer
5 Replies

4. IP Networking

DHCP/pxeboot Situation: how to specify default route?

Greetings, I am using debian squeeze to perform the following operation: 1. pxeboot Alix 2.c board into debian installer When I get to the installer my laptop's dhcp server successfully provides an ip address but does not set up the default route. I am not sure how to provide this. I... (2 Replies)
Discussion started by: mock
2 Replies

5. AIX

Default route question

Hello I have a question regarding default route on AIX servers. (I am using a p5 5.3 TL9 machine). in my output of "lsattr -El inet0" I can see there are two routes like below. route net,-hopcount,0,,0,x.x.207.7 Route True route net,-hopcount,0,,0,x.x.202.129 Route True But... (9 Replies)
Discussion started by: gsabarinath
9 Replies

6. Solaris

solaris 10 u5 what happens if no default route configured

Hi, I am new to solaris 10. What is the procedure the os takes if a default route is not configured? I am using a multihomed server with 4 interfaces. It looked strange to me this morning, because i had not defined a default route it defaulted to making one up, with the ip address of another... (9 Replies)
Discussion started by: borderblaster
9 Replies

7. AIX

Default route removed - what to do ?

Hi, After accidental default route removal serial connection doesn't work. What should I do to connect to my machine ? thanks Vilius (7 Replies)
Discussion started by: vilius
7 Replies

8. AIX

Permanent Default Route

Hi, We are running AIX 5.2. Our default gateway used to be IP Address A. Our new default gateway is IP Address B. A netstat revealed that our default route was IP address A. We manually added default route with IP address B and removed the default route with IP address A. However,... (3 Replies)
Discussion started by: DenD
3 Replies
Login or Register to Ask a Question