Network configuration in Solaris 8


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Network configuration in Solaris 8
# 1  
Old 02-02-2001
Hi. I have installed Solaris 8 and I am trying to configure the network settings. For some reason every time I reboot, my card loses its configuration. I can run ifconfig and the only IP address bound to my card (on either interface) is 127.0.0.1. I can change that to a valid IP address on my network and connect to the network, but I cannot access anything outside. I do not know where to tll UNIX my gateway IP address. I guess this is really two questions. Thanks in advance for any help.
# 2  
Old 02-02-2001
The network information is all stored in text files in the /etc directory. The installer should have prompted you for this information during the install and written all this information to disk.

/etc/defaultrouter contains the IP (or hostname if it's in the hosts file) of the gateway

/etc/hosts contains the IP and hostname of hosts known to the computer including the hosts own IP

/etc/nodename contains the hostname

/etc/resolv.conf contains DNS info in the format of:
nameserver {DNS_server_IP}

If this gets you on the Internet but you are unable to resolve hostnames (DNS), you need to edit the /etc/nsswitch.conf file and add dns into the hosts line.

There should be man pages on these filenames defining the exact format. Information plugged into the system with ifconfig is only temporary and is flushed when you reboot.



[Edited by 98_1LE on 02-02-2001 at 09:32 AM]
# 3  
Old 02-07-2001
Hi there,
you must do the above mentioned things, of course, but there may be another mistake you made, if i really understood your problem:
The 127.0.0.1 is the loopback address, and as far as i know, you must not delete this adress, but leave it in your /etc/hosts as localhost.
(again: as far as i know....)

felida
# 4  
Old 02-07-2001
The loopback interface is different than a hardware interface. Loopback is internal to the kernel and never sees an external device. For example, an ifconfig output:

Quote:
eth0 Link encap:Ethernet HWaddr 00:A0:24:80:52:9F
inet addr:165.209.1.200 Bcast:165.209.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd800

eth1 Link encap:Ethernet HWaddr 00:00:C0:31:B3:95
inet addr:84.14.111.22 Bcast:84.14.111.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1463590 errors:0 dropped:0 overruns:0 frame:0
TX packets:1401027 errors:0 dropped:0 overruns:0 carrier:0
collisions:170 txqueuelen:100
Interrupt:10 Base address:0x310 Memory:cc000-d0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:4492 errors:0 dropped:0 overruns:0 frame:0
TX packets:4492 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Note that the loopback interface is not the same as the ethernet interfaces.
# 5  
Old 02-09-2001
more solaris questions

We may be having the same issue.....more details...
I'm attmpting to attach this box through a cable modem receiving DHCP addresses. The ifconfig command only returns a single interface lo0, with the loopback line mentioned above. Using webstart3.0 doesn't get networking done properly. I'm assuming that since I can only resolve the loopback interface that I need to initialize the ethernet card via a command line? I'm also not sure I've been able to resolve the MAC address correctly, is there a command line query for the MAC address?

Sun Docs are no help at all so far.

Thanks in advance
# 6  
Old 02-09-2001
Lightbulb

Try this thread for some discussions on arp, loopback, and virtual interfaces:

http://forums.unix.com/showthread.php?threadid=352
# 7  
Old 02-09-2001
half solved

Well...it looks like i'm halfway there....here's what I learned (trial and error)

The lo0: interface (loopback) cannot be configured to DHCP, it must be a default system setting. However, by creating a file hostname.hme0 in the /etc directory (just a blank datafile) I was able to get the ifconfig command to initialize a useable interface. The following command got me a pingable connection out

ifconfig hme0 dhcp

thats the halfway part....I can ping numerical addresses 225.225.225.000 etc., but cannot resolve names such a http://www.sun.com......any suggestions?

thanks

[Edited by frustrated on 02-09-2001 at 05:40 PM]
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Network interface configuration - Solaris 11

Hi, I am new in Solaris 11. I can't even make the NIC work. Here is the issue: Any help will be greatly appreciated. (6 Replies)
Discussion started by: aixlover
6 Replies

2. Solaris

Solaris Network Configuration

Hi How do I configure a network card in Solaris 10? using the command ifconfig, and also please advise me for persisting this ip address what are the files newly created and modify. I am a new baby in solaris:) (4 Replies)
Discussion started by: vipinmurali
4 Replies

3. Solaris

Network configuration

Hi I have installed Solaris 5.10 on Intel x86 machine (standalone). I want to access internet through solaris. How should I configure the network? Is static IP or DHCP advisable? (5 Replies)
Discussion started by: johnl
5 Replies

4. UNIX for Dummies Questions & Answers

network configuration

I am using solaris 10, my internet works alright but each time i reboot i keep loosing my connection. I will have to use the ifconfig iprb0 192.168.1.xx netmask 255.255.255.0 up and Route add default 192.168.1.xxx command to gain back my internet. I know there is a better way of addressing... (1 Reply)
Discussion started by: seyiisq
1 Replies

5. SCO

Network Configuration

I have a SCO 5.07 Server and I am trying to get it on my network. I have edited the /etc/hosts file and /etc/rc2.d/s99route . I has connectivity on the NIC card but not sure if I am forgetting another file. Thanks! (2 Replies)
Discussion started by: andrewd
2 Replies

6. Solaris

Solaris 10 network configuration problem with zone

I am seeking help from the gurus in this forum and hope that I can find answers soon. Anyone who provide the answers will be greatly appreciated. I have a sparc box with Solaris 10 on it. We install Solaris with zone structure. One global zone and two other zone. I installed Oracle DB on global... (6 Replies)
Discussion started by: duke0001
6 Replies

7. Solaris

network configuration

hi again... i configured my network settings sometiime ago using the sys-unconfig command.the active link was rtls0. there was some problem with the network so i changed the ISP. now when im trying to reconfigure the system wit sys-unconfig, it tries to configure the network on rtls1 (and shows... (1 Reply)
Discussion started by: strider
1 Replies

8. IP Networking

network configuration files

I have solaris 2.8 on an ultra 1 and just configured the following files: defautrouter resolv.conf nsswitch.conf netmasks hosts but when I reboot, my NIC still is not configured. Which file do I need to configure to keep the NIC configured after reboot? (3 Replies)
Discussion started by: DarkLord
3 Replies

9. HP-UX

HP-UX Network Configuration

Hi, I have installed a HP-UX B.11.00 U 9000/800 Server in one of the domain. And I'm also able to telnet/ping into this server from systems in the same domain. But I'm not able to telnet/ping into this server from a different domain. So, what shoud need to do to achieve this... (6 Replies)
Discussion started by: S.Vishwanath
6 Replies

10. UNIX for Dummies Questions & Answers

problem with Solaris in Network configuration

WEe have installed Intel version of Solaris 8 in a machine .we skipped the network configuration at the begning.we selected unnetworked.Now we need to connect the same machine to a network. We configured the Card using ifconfig but its taking the ip address itself as the Default G/W. I need help... (4 Replies)
Discussion started by: premkumar
4 Replies
Login or Register to Ask a Question