Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NIC cinfiguration lost during reboot

Status
Not open for further replies.

optionsleft

Vendor
Jan 13, 2007
124
EU
Can somebody help me. I am working on CMS netra 210 solaris. I assigned ip address to bge1 but when reboot it is being removed and not saved. Here is the config details before and after reboot.

Before Reboot

0835TFI00R# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.203.63.41 netmask ff000000 broadcast 10.255.255.255
ether 0:21:28:2:5a:c8
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.203.68.41 netmask ffffff00 broadcast 10.255.255.255
ether 0:21:28:2:5a:c9

0835TFI00R# netstat -r

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.203.63.0 0835TFI00R_1 UGH 1 0
10.203.68.0 0835TFI00R_1 U 1 0 bge1
10.203.63.0 0835TFI00R U 1 1 bge0
224.0.0.0 0835TFI00R U 1 0 bge0
default 10.203.63.1 UG 1 0
localhost localhost UH 4 18 lo0
0835TFI00R#

After reboot

0835TFI00R# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.203.63.41 netmask ff000000 broadcast 10.255.255.255
ether 0:21:28:2:5a:c8
bge1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:21:28:2:5a:c9
0835TFI00R#

0835TFI00R# netstat -r

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.203.63.0 0835TFI00R_1 UGH 1 0
arpanet 0835TFI00R U 1 1 bge0
224.0.0.0 0835TFI00R U 1 0 bge0
default 10.203.63.1 UG 1 0
localhost localhost UH 4 18 lo0
0835TFI00R#


Thanks,

mwooks
 
make sure you have a /etc/hostname.bge1 file:

the contents of that file would be either the phyiscal IP address (10.203.68.41) used for the interface, or the DNS name assigned to the IP address (usually what I use).

EG:

nslookup 10.203.68.41


This file tells the system to bring up the interface upon reboot.
 
This is what I have in hostname.bge1. Do I need to add the IP address as well?

hostname
0835TFI00R_1
~
~
~
~
~
"/etc/hostname.bge1" 1 line, 13 characters


Thanks,

mwooks
 
The contents of the hostname.xxx is the hostname. Looks like by your entry you have the word hostname in the file along with the actual host name. Place the IP address in /etc/inet/hosts.
 
what ever 10.203.68.41 resolves to in DNS is what you want in the /etc/hostname.bge1 file, no more, no less.

be sure to fully qualify it:

EG: name.company.com

 
Actually there's a whole swag of other stuff you can put into hostname.ifN files these days, especially if you're using IPMP (IP MultiPathing) or something fancy like that... but I guess that's off-topic.

I would definitely make sure that what I put in there was in /etc/hosts as DNS may not be contactable until the interface is up!

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top