Redirect to same port two NICs?


 
Thread Tools Search this Thread
Operating Systems Solaris Redirect to same port two NICs?
# 1  
Old 12-17-2010
Redirect to same port two NICs?

Dear members,

I have to problems ;

First ; I need to setup two NICs for a Solaris 10 server. But I could not do that unless giving different names in /etc/hosts file. like :

10.1.1.1 testsolaris1
10.3.1.1 testsolaris2

Second ; After solving first problem I have to setup my Solaris10/Apache server with two NICs. I want to redirect the 80 port to another port like 777 for both of NICs. I tried this, but I was never able to set it successfully for both NICs.

When I unplumb one of them, it's ok. But I cant for both of them.

So ;

- Is it possible to give the same hostname for two NICs
- Is it possible to redirect to same port two NICs

Best regards.
# 2  
Old 12-17-2010
Why do you hate port 80?

The best way to unify the name for many hosts is by DNS on all the hosts, so the DNS nameserver rotation can find the host that is up and it gives only it's own address for the shared name. However, you have one host.

If you turn on routing software, packets to A can be routed to b and vice versa, so you can use either. Any host with two ip ports and ip forwarding is a router, but to be know, it needs to have route publishing software and be accepted by routers.

You could write a widget for port 80 that redirects using the IP or host name of that side. C and perl and inetd all are happy to listen, and the redirect dialog is rather simple. It might already be out there, for many domains have the domain name as a host name for the mail portal, and redirect all port 80 calls there to the web server. If you send the moved permanently http response, clients should update their bookmarks and such.

Redirecting ports is just a side issue, once you have a unified name:

http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirect

Maybe we are working to hard on redirect. Two of these Apache directives might do the trick (status should be permanent to send 301 and update clients):

RedirectMatch [status] regex URL
# 3  
Old 12-17-2010
What is your intention of giving same hostname? Is this hostname setting related to what you want to achieve with httpd service?

You can make httpd listen to port 777 directly by changing the Listen directive on httpd.conf file.
Code:
Listen 777

# 4  
Old 12-20-2010
Yes, but if 777 is the web server, the port 80 lost browsers need redirection, and why 777 not 80 and not >1023 (no root components)?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

2. UNIX for Dummies Questions & Answers

Linux with two NICs

Hello All, I have Linux box with two interface cards. Every card has it's own IP Address and Gateway, IP addresses are from different subnets. eth0 192.168.1.10/24 GW 192.168.1.1 eth1 192.168.2.10/24 GW 192.168.2.1 Third PC is located in 192.168.13.0/24 network and is trying to access... (2 Replies)
Discussion started by: AndreiM
2 Replies

3. IP Networking

Networking 2 NICs

Hi all, Host - Ubuntu 12.04 desktop 64bit Virtualizer - Oracle VirtualBox 2 NICs Where can I find relevant document to set up 2 NICs, one for inward bound and another for outward bound, separate channel, both connected to the same router Would following document be appropriate for my... (1 Reply)
Discussion started by: satimis
1 Replies

4. Web Development

Redirect to diff port on apache

Hi, I'm running both mail (webmail port = 8080) and web (http = 80) on same box. i am able to redirect as below without any problem. From: http://mail.abc.com To: http://www.abc.com:8080 I did the above with a simple virtualhost and redirect directive. But my requirement is to have same... (1 Reply)
Discussion started by: reddyr
1 Replies

5. UNIX for Dummies Questions & Answers

multiple NICS in one box

Help, I have a Ubuntu headless server that has 5 NICs in it. The eth0-4 interfaces keep moving from NIC to NIC on boot up. I am told that there is a file that I can edit that will allow me to stabilize this but I need some help in determining the exact file and format for that file. All help will... (0 Replies)
Discussion started by: poundjd
0 Replies

6. Linux

Two NICs one IP address

I'm looking for a way in RHL 5.1 to use two NICs on one host with two physical IP addresses and map them under one virtual IP address, i.e. NIC 1 10.10.10.1 NIC2 10.10.10.2 VIP 192.168.10.1 Basically I want either one of the NICs to ARP for the VIP. No load balancing required just HA. (2 Replies)
Discussion started by: wschmied
2 Replies

7. Solaris

How many NICS do I have?

Hi, is there a way in Solaris 8 to determine how many total NIC's say a Sun Sparc box has installed - plumbed or unplumbed - and find out its capable network speeds and MAC address? I know ifconfig -a but that only shows the plumbed and used interfaces. thx cc (2 Replies)
Discussion started by: bigapple100
2 Replies

8. IP Networking

FreeBSD and two NICs

FreeBSD 4.8, Apache 1.3.27 - two NICs, one with a real-world IP plugged into a switch outside the PIX firewall, the other with a private IP plugged into a switch inside the PIX firewall. Apache listens on both IPs. my domain is mydomain.org. so in /etc/rc.conf i have something like this (these... (10 Replies)
Discussion started by: ednix
10 Replies

9. AIX

Merge NICs

Hi friends, I installed oracle 10g (10.2.0.2) RAC on 2 IBM p5 570 servers running AIX 5.3ML04 and HACMP5.2 (used Raw devices, not used GPFS). Each server has 4 x 1Gbps ethernet cards (NICs), en0 and en1 for boot address, en2 and en3 for oracle interconnect. Now i want to merge 2 NICs (en2 and... (1 Reply)
Discussion started by: bong02
1 Replies

10. IP Networking

3 nics, 2 with same network/mask

I run openbsd with 3 NICs, ep1 is dhcp, interface with internet ip addy dc0 is 192.168.0.254/24 sis0 is 192.168.0.253/24 My system somehow lags, and some services do not work properly, i want to run a lot of local network services like samba, named, ftp, http, dhcpd, radiusd. output of... (1 Reply)
Discussion started by: hachik
1 Replies
Login or Register to Ask a Question