分类:
2010-05-13 11:09:40
These are the steps to add the second IP address to your existing network adapter.
cd /etc
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 configuring TCP/IP, you may want to consult with your system administrator before proceeding or contact support@oclc.org.
68.14.229.198 ezproxy.yourlib.org
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 effect, 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 add 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 Listen 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.
-----------------------------------------------------------------------
如果只想用命令临时添加下,那么下面三个command就可以了:
ifconfig hme0:1 plumb
ifconfig hme0:1 68.14.229.198
ifconfig hme0:1 up