configuring network address
Hi,
I am using Solaris10. I want to configure network card for accessing broadband connection.Can anyone pls help me in configuring the network card. I tried to configure using 'ifconfig'.But i could configure only temporarily and that too i could configure only i\p. I need to configure i.p,gateway,subnet,dns and alternate dns addresses.
Pls help me in configuring the addresses.
Regards,
Ravi.
[499 byte] By [
geda] at [2007-11-25 22:42:17]

# 1
You can either execute sys-unconfig or fill in all network info manually.
Sys-unconfig will reset all configuration and will guide you through a re-initialisation of your network on reboot.
Filling in the files manually is pretty easy:
/etc/hosts for the ip address and hostname
/etc/resolve for the DNS server ip addresses and domain
/etc/defaultrouter for the broadband router ip address
/etc/host.networkcard for the ipaddress for the specific network card.
# 3
Hi,
I am not sure whether u are familiar with Solaris. Nonetheless, I have include the steps. Hope it helps.
How do I specify my IP address?
1. Start xedit (or another text editor)
2. Open the /etc/inet/hosts file
3. It must have the following lines:
* 127.0.0.1 localhost
* 123.123.123.125 yourhostnameandipaddress
(For a more detail steps, pls refer to your another post as i have replied)
How do I enable DNS domain name resolution?
1. Start xedit (or another text editor)
2. Open the /etc/nsswitch.conf file
3. In the line that reads: "hosts: file", replace it with "hosts: dns file"
4. Save the file.
How do I specify my DNS servers?
1. Start xedit (or another text editor)
2. Open the /etc/resolv.conf file
3. Add the following lines:
* domain yourdomainhere.com
* nameserver 123.123.123.123
* nameserver 123.123.123.124
4. You can add upto 3 nameservers in this file
5. Save the file.
How do I specify my gateway?
1. Start xedit (or another text editor)
2. Open the /etc/defaultrouter file
3. Add a single line containing the ip address of your network gateway.
Thanks
Alvin