unable to setup network,urgent help needed!!

Hi all,
I just bought a new system, but am unable to configure network on it..
am using a nge0 ethernet interface to login.
i've tried all i knew but not of the webpages seem to open.
Here is what i've done..

ifconfig nge0 plumb
ifconfig -a
(nge0) was being displayed as up and running.

opened network settings
$ network-admin

the hostname was already set.
I had to set the domain name, didnt exactly know what to give here, but as of now ive give airetelbroadband.in (airtel is my ISP).
(would like to know if it is necessary??)
then set the connection to take DHCP.
thats it.

the set my hostname in /etc/nodename
touch /etc/dhcp.nge0

but when i reboot i still cannot connect to the net!!!
Its a little urgent because this is the only OS i have right now!!
pls assist!!

Thanks

What Solaris release are you using ? (cat /etc/release)

am using 79a

If you are using nwam (the default), you shouln't have to configure anything. Actually, interfering with nwam by running ifconfig and similar commands might confuse it.

can you ping anything ?
do you have a default route (/etc/defaultrouter)
output of netstat -r

I have disabled nwam..
However i would like to know how to use nwam?

coming to the main picture...
i can ping only my host ip..
anyother ip or anyother dns is not working!!!
But i can assure you that my network interface is being detected...

$network-admin
when the window opens up, my interface is shown as active and its nge0.
it also shows up on ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
nge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
ether 96:bd:ea:fc:1b:0
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128

can you tell me what am doing wrong???

btw am using a on-board ethernet card from nvidia!!!
My winxp gets the ip automatically....
So i thought of setting up DHCP on solaris, when that didnt work i tried a static ip format but that didnt go as planned either

You didn't answer the route question, can you look into that? What's the output of route -n (or the Solaris equivalent, but I assume it's the same as on other platforms)?

route -n didnt work...
but i have the o/p of netstat -r and netstat -i respectively, pls have a look

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.1 UG 1 6
192.168.1.0 192.168.1.2 U 1 6 nge0
localhost localhost UH 1 301 lo0

Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
localhost localhost UH 2 21 lo0

i have attached the o/p of netstat -i
pls have a look

i've made a mess out of that netstat -r..
so here is the attachment
:slight_smile:

Looking back, it seems that nge0 doesn't have a useful IP address. Can you try setting it manually to something in the 192.168.1.x space? x should be as random as you can make it, if you know what I mean ... If you pick an address which is already taken, things will get a bit interesting (but probably not more than you can handle -- just pick another address and try again).

Check that the default route to 192.169.1.2 is still there after you do this. At least on Linux, I've seen a useful default route disappear after you coincidentally set a new IP address in that network /-:

Hi ,
I tried changing the ip to a random address, but that still didnt work...
I also checked /etc/defaultrouter, changed that value as well...
but nothing seems to be working....

My ISP is airtel.
I have a manual to tell me how to setup the connection for the prescribed modem (that they have given)...
I followed that and have setup the dns server ips and the other stuff...

yet there is no luck...

Again, instead of trying (and failing for some reason) to configure the network manually, you should re-enable nwam which is automatically doing all the settings for you without any other requirements provided your network provides a correct DHCP service.

svcadm disable physical:default
svcadm enable physical:nwam

wait for the configuration to be done

ifconfig -a
netstat -rn
grep "^host" /etc/nsswitch.conf
cat /etc/resolv.conf

sys-unconfig maybe...

I'm thinking all your config are correct, maybe the problem is somewhere else...

From your own PC wintel desktop can you open your web browser and check if you are accessing internet thru a proxy or anything like that?

If you are accessing internet thru a proxy then maybe on the sun server web browser configure it to go thru the same proxy also.

The OP didn't provide all of the config, especially nothing about the DNS settings.

Hi,
In response to sparcguy, i didnt get your question, can you be a bit descriptive....

Also out of frustration i bought a new lan card
its a realtek 8139d...
its listed on sun HCL...
but am unable to use it...can you pls tell me how to plumb it and get that up and running atleast!!!

Thanks

I believe I gave you the instructions. Read post #12.

This is just a hunch, on your PC desktop open up your web browser(like firefox) go to

tools --> options --> network --> settings

And see if you are accessing internet thru any proxy that your organization may have?

If you are then go configure the proxy settings at web browser on your Sun server.

Btw maybe to isolate this problem you can try assigning a static IP to the interface first.


To configure network settings.

1\) plumb your network interface, 
ifconfg &lt;interface&gt; plumb
ifconfig &lt;interface&gt; xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx up
to test just ping localhost, resp means ok, no resp means not ok - check cables

2\) cat /etc/defaultrouter \(must contain IP address of your defaultrouter\)
Test: ping to your defaultrouter

3\) cat /etc/resolv.conf \(must contain entries of your nameservers, if one on each line\)

4\) cat /etc/nsswitch.conf \(manually add dns to end of host like so  "hosts: files dns"\) 

what does netstat -r say?
please give output.

also what is the output for `grep network /etc/path_to_inst`?

ping localhost will work regardless of a faulty cable or not. I guess you really meant "ping <router ip>"