Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182075
  • 博文数量: 56
  • 博客积分: 2305
  • 博客等级: 大尉
  • 技术积分: 591
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-13 10:42
文章分类

全部博文(56)

文章存档

2012年(3)

2011年(17)

2010年(36)

我的朋友

分类:

2010-05-13 11:09:40

These are the steps to add the second IP address to your existing network adapter.

  1. Become root on your system, either by logging into that account or using the su 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 configuring TCP/IP, you may want to consult with your system administrator before proceeding 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 found in step 3 with :1 added to the end, such as /etc/hostname.hme0:1 or /etc/hostname.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 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

阅读(710) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Warning messages in Catalina.out of Tomcat6.0.18

给主人留下些什么吧!~~