You are on page 1of 2

Adding a Second IP Address to an Existing Network Adapter on Solaris

If you run EZproxy on a Solaris system that already has a web server and you wan
t to use EZproxy on port 80, you will need to assign an additional DNS name and
IP address to the server.
Start by requesting the new DNS name and IP address from your network administra
tor. The IP address you request must be in the same subnet as the existing IP ad
dress on your server.
If you use proxy by hostname, be sure to request the creation of the wildcard en
try to point to the same address. With proxy by hostname, you should also verify
that the DNS entries with the Check DNS test.
In this note, the DNS name ezproxy.yourlib.org and the IP address 68.14.229.198
demonstrate where the DNS name and IP address should appear, and where you shoul
d insert your values instead.
These are the steps to add the second IP address to your existing network adapte
r.
1.Become root on your system, either by logging into that account or using the s
u command.
2.Change your current directory to the /etc directory with the command:
cd /etc
3.Check for existing network adapters with the command:
ls hostname.*
In most instances, you will see either hostname.hme0, hostname.le0, or hostname.
eri0. If you see other files with any other names and are unfamiliar with config
uring TCP/IP, you may want to consult with your system administrator before proc
eeding or contact support@oclc.org.
4.Edit /etc/hosts and add a line for your new address and name such as:
68.14.229.198 ezproxy.yourlib.org
5.To create the new interface, you need to create a file that matches the name f
ound in step 3 with :1 added to the end, such as /etc/hostname.hme0:1 or /etc/ho
stname.le0:1. This new file should contain only the new DNS name, such as:
ezproxy.yourlib.org
With these changes in place, your system is now configured to create this added
IP address each time it boots. You can either reboot to make this change take ef
fect, or manually enable the new address with a series of command similar to:
ifconfig hme0:1 plumb
ifconfig hme0:1 68.14.229.198
ifconfig hme0:1 up
To tell EZproxy to use this name and address, edit config.txt/ezproxy.cfg and ad
d lines similar to:
Name ezproxy.yourlib.org
Interface 68.14.229.198
These lines should appear before any LoginPort, LoginPortSSL, or Title lines.
You will also need to configure your existing web server to tell it to use only
its IP address. In Apache, you do this by editing httpd.conf and changing your L
isten lines like:
Listen 80
to
Listen 68.14.229.197:80
where 68.14.229.197 would be replaced by the main IP address of your server.
-bash-3.00# zlogin goldtst netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 10.91.42.251 UG 1 203372
default 10.91.42.251 UG 1 15689 bge1
10.91.42.0 10.91.42.41 U 1 3266 bge1:1
10.91.42.0 10.91.42.251 UG 1 0
224.0.0.0 10.91.42.41 U 1 0 bge1:1
127.0.0.1 127.0.0.1 UH 4 437271 lo0:2
-bash-3.00# route delete -net 10.91.42.41 -netmask 255.255.255.0 -gateway 10.91.
42.251
delete net 10.91.42.41: gateway 10.91.42.251
-bash-3.00# zlogin goldtst netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 10.91.42.251 UG 1 203372
default 10.91.42.251 UG 1 15689 bge1
10.91.42.0 10.91.42.41 U 1 3266 bge1:1
224.0.0.0 10.91.42.41 U 1 0 bge1:1
127.0.0.1 127.0.0.1 UH 4 437271 lo0:2
-bash-3.00#
---------------------------------------------
zlogin goldtst netstat -rn
route delete -net 10.91.42.41 -netmask 255.255.255.0 -gateway 10.91.42.251
zlogin goldtst netstat -rn
ifconfig bge1:2 plumb
ifconfig bge1:2 10.91.43.44 zone goldtst netmask 255.255.255.0 up
ping 10.91.43.44
route add -net 10.91.43.44 -netmask 255.255.255.0 -gateway 10.91.43.1
zlogin goldtst netstat -rn
route delete -net 10.91.43.44 -netmask 255.255.255.0 -gateway 10.91.43.1
ifconfig bge1:2 10.91.43.44 zone goldtst netmask 255.255.255.0
ifconfig bge1:2 unplumb
zlogin goldtst netstat -rn
==========================

You might also like