hostname.bge0 failing after creating bge0:1 and rebooting


 
Thread Tools Search this Thread
Operating Systems Solaris hostname.bge0 failing after creating bge0:1 and rebooting
# 1  
Old 10-08-2010
hostname.bge0 failing after creating bge0:1 and rebooting

Hello,

I've got a puzzler here but it might be quick solution for some of you.

I'm trying to add a second IP address to a network adapter on a Solaris 10 box. I've created a hostname.bge0:1 file and put in the new name, e.g. new.mycom.com. I've added the new IP and the name to hosts. I've done:
Ifconfig bge0:1 plumb
Ifconfig bge0:1 xxx.xx.xx.xxx
Ifconfig bge0:1 up

There are really two problems.
1. My new.mycom.com is resolving to old.mycom.com. I probably need to do something like set Listen xxx.xx.xx.xxx:80 in the httpd.conf for the old IP so the new IP can go to the new.mycom.com?
2. After I get things set up and do a normal reboot, I cannot get to old.mycom.com. The page will not load in the browser. I can SSH to server. The only thingy that doesn't work is the WWW, I cannot get the index.html or any other page. Then when I remove the new hostname.bge0:1 and reboot, everything is fine and functioning as normal. Do I need to ifconfig hostname.bge0 up maybe? I've taken a look at ifconfig -a and it looks fine.

Any ideas? Please educate me.

Thank you,
Friedrich
# 2  
Old 10-09-2010
1) it sounds like DNS or /etc/hosts is wrong

2) yes - httpd.conf may need to be updated to litsten on the new interface.
# 3  
Old 10-09-2010
I *believe* /etc/hosts is correct. It is just the old IP and name and the new IP and name. Do they need to be in order by IP number or anything like that?

I've even updated netmasks and ipnodes with the new information and that doesn't stop the problem.

What the new IP and DNS entry is for is a piece of software that will be its own web server. I know I need to edit the httpd.conf of the old IP/name to listen to just theoldip:80, but that does not help. The old IP/name are an apache2 virtual host.

Thanks for your help, Frank.

If anybody can offer any insights I would be very appreciative. If you need to know more details about the software, just ask.

Thank you.
# 4  
Old 10-09-2010
Quote:
Originally Posted by Friedrich
1. My new.mycom.com is resolving to old.mycom.com.
Names resolves to IP addresses and reciprocally. What do you mean name resolve to name ?
After reading a couple of times your question, I cannot understand what you are trying to explain. Can you clarify what the issue is ?
# 5  
Old 10-10-2010
When I get things set up (the way I believe they are supposed to be) I open a web browser and navigate to new.mycom.com but it goes to old.mycom.com.

The program I am installing contains its own web server, so I should be going to the index.html, for example, set up for this different web server. So the old name is resolving when I enter either new.mycom.com or the new IP.

Thanks for your insights.

Friedrich
# 6  
Old 10-11-2010
Are the browser and the web server running on the same machine ? What name resolution service are set ? Do you mean the web server is redirecting to old.something ? Still clear as mud ...
# 7  
Old 10-11-2010
Quote:
Originally Posted by Friedrich
I *believe* /etc/hosts is correct. It is just the old IP and name and the new IP and name. Do they need to be in order by IP number or anything like that?

I've even updated netmasks and ipnodes with the new information and that doesn't stop the problem.

What the new IP and DNS entry is for is a piece of software that will be its own web server. I know I need to edit the httpd.conf of the old IP/name to listen to just theoldip:80, but that does not help. The old IP/name are an apache2 virtual host.

Thanks for your help, Frank.

If anybody can offer any insights I would be very appreciative. If you need to know more details about the software, just ask.

Thank you.
First, I've never seen anyone run 2 web servers off the same NIC. You may want to reconsider that.

Too many things going on at the same time: virtual IPs, virtual hosts, and not enough information to troubleshoot (actual contents of files).

Before I go further:
what do you mean by apache2 running on a virtual host? Do you mean a zone?
Has the application's web server (.i.e., newcom.com) been configured?
Is newcom.com running on a virtual host as well?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

2. What is on Your Mind?

Rebooting a career

Apologies if this is not the correct place to post this. I used to have a job supporting several custom applications that ran on Unix platforms. I used shell scripting, sed, awk, and SQL, but all on a pretty basic level. I also performed non-technical tasks like helping with project management,... (4 Replies)
Discussion started by: intranslation
4 Replies

3. AIX

rebooting HMC

Hi, I would like to know wheather rebooting HMC will impact on Management Systems or Lpar inside it is showing? or I have to shutdown LPAR then only reboot HMC. (7 Replies)
Discussion started by: manoj.solaris
7 Replies

4. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

5. Solaris

bge0 is UP but not RUNNING

Hi people, I have a solaris OS system. I configured its interfaces. They are UP but not in RUNNING status except loopback interface. I made the interfaces DOWN and UP again. The other side of the interfaces (switch ports) are UP. Does anyone have any idea? What may cause this problem, How can... (8 Replies)
Discussion started by: hubatuwang
8 Replies

6. Solaris

Server Rebooting frequently

Deall All, I have facing some problem. I have a Sun 4500 Server at the customer place. Now the server is not booting mean's once the server is coming up it is automatically rebooting. As this is the critical server for the customer that is use for production . Can this be solved by... (10 Replies)
Discussion started by: sudhansu
10 Replies

7. AIX

hmc not rebooting

Anyone faced this? I rebooted the HMC through command line after patch installation (hmcshutdown -t now -r) The strange thing happened was the hmc never rebooted, I was not able to connect it through graphical view or through ssh, but the session through which i issued the command was still... (4 Replies)
Discussion started by: balaji_prk
4 Replies

8. Solaris

Solaris 10 x86 bge0 network problem

Hi, Server --Dell Poweredge 2550. OS--Solaris 10 Network switch --cisco --port setting- 1000Mbps full duplex The network LED goes off when the solaris console screen comes up but prior to that(while booting is in progess) it is green. The system is not able to come on network,ping to switch... (3 Replies)
Discussion started by: anilzoc
3 Replies

9. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

10. UNIX for Dummies Questions & Answers

soft rebooting

When I do a hard reboot, the system recognizes both the ttya and the ttyb, but when I do a hard reboot, it only doesn't recognize the ttyb. Is there a way I can fix this??? Thanks!:confused: (5 Replies)
Discussion started by: nattie_h
5 Replies
Login or Register to Ask a Question