Can't able to connect the Server


 
Thread Tools Search this Thread
Operating Systems Solaris Can't able to connect the Server
# 8  
Old 09-17-2008


One thing I want to tell you that DNS was not selected for name resolution when Solaris was installed.

Sorry for that,now I am sending the correct info--

# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files
project: files

# cat /etc/resolv.conf
cat: cannot open /etc/resolv.conf

# cat /etc/defaultrouter
cat: cannot open /etc/defaultrouter


No Idea,Why is your own IP listed as the default gateway.
Hpw can i config the other IP as default gateway Smilie??
# 9  
Old 09-17-2008
of course .. create /etc/defaultrouter file and add your gateway on your network
this is for permanently .. manually add with route command ..

route delete default 10.130.92.27
route add default your_gw
# 10  
Old 09-17-2008
I deleted the default router(10.130.92.27) and try to add the new router but it is saying--

# route add default 142.102.100.60
add net default: gateway 142.102.100.60: Network is unreachable

I
am also sending the o/p of netstat which shows 10.130.92.27 had been deleted as default router

# netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.130.92.0 10.130.92.27 U 1 14 eri0
224.0.0.0 10.130.92.27 U 1 0 eri0
127.0.0.1 127.0.0.1 UH 28 264544 lo0


my main problem is that i am unable to reach the n/w.So please tell me How can I do that??
# 11  
Old 09-17-2008
Oh dear .. dont u see that u have no gateway from your subnet to another ..firstly u must assign default gateway ..from which you can reach to another (of course if there is any way) .. ask to your admin what is default gateway of your net ..
# 12  
Old 09-17-2008
Presumably there is a gateway on the 10.130.92.x network which knows how to connect to 142.102.100.60 so you should use that as your gateway. I suppose you could put in an explicit route to 142.102.100.60 but we don't know how you are wired, so we cannot hope to guess how exactly. (Presumably on eri0 so you could try to add a route to that address on that interface and see if it helps, but I suspect it won't.)
# 13  
Old 09-17-2008
My issue had been resolved....

Thanks a lot all of you for replying Smilie.....

# 14  
Old 09-17-2008
What was the solution then?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

How to connect from one server(Current) to another server?

Hi, I have something like this. I have connected to one server ServerA and from this ServerA, i need to do ssh connection to ServerB and then execute my queries. #!/usr/bin/expect spawn ssh Myusername@ServerB expect "password" send "Mypassword\r" interact Output.ksh: spawn: not... (5 Replies)
Discussion started by: Samah
5 Replies

3. Linux

How to connect Linux server (configure two way authentication) with Windows server?

Hi my name is Manju. ->I have configure the two way authentication on my linux server. ->Now I am able to apply two way authenticator on particuler user. ->Now I want to map this linux server to my AD server. ->Kindly tell me how to map AD(Active Directory) with this linux server. ... (0 Replies)
Discussion started by: manjusharma128
0 Replies

4. Shell Programming and Scripting

Connect to one server from other server without asking password

Hi , I am using redhat linux 5.I.I need a command or script which need to login from one server to another without asking password.This can be done even providing password on the command line is also fine.I have tries sshpass but it didn't work.ssh key generations is not preferred here. ... (7 Replies)
Discussion started by: muraliinfy04
7 Replies

5. Shell Programming and Scripting

Connect to server-1 from server-2 and get a file from server-1

I need to connect to a ftp server-1 from linux server-2 and copy/get a file from server-1 which follows a name pattern of FILENAME* (located on the root directory) and copy on a directory on server-2. Later, I have to use this file for ETL loading... For this I tried using as below /usr/bin/ftp... (8 Replies)
Discussion started by: dhruuv369
8 Replies

6. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

7. UNIX for Advanced & Expert Users

Public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (1 Reply)
Discussion started by: sridhardwh
1 Replies

8. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

9. Shell Programming and Scripting

Connect to Server B from Server A and Archive the file

Hi I need to connect to a ServerB from Server A eg: Server A : 172.20.273.51, un: xxx, pwd: xxx Server B: 172.20.273.51, un:yyy, pwd: yyy Need to copy the files(with name starts with IME*) from /grid/pc/IME* to /grid/pc/archive What will be the command or script to... (3 Replies)
Discussion started by: vsmeruga
3 Replies

10. Windows & DOS: Issues & Discussions

To Connect to Windows server from Unix server

Hi i am writing a script in unix where after some validations, i require the script to connect to a windows server and then kich off a batch file there. i tried ftp and got the error message that "the remote host refused an attempted connect operation". I am able to connect to this unix... (4 Replies)
Discussion started by: vidzz911
4 Replies
Login or Register to Ask a Question