|
下面是hosts里的一部分
- $cat /etc/hosts
- 127.0.0.1 localhost.localdomain localhost
- 192.168.168.250 console
- 192.168.100.1 ims001
- 192.168.100.2 ims002
- 10.0.100.3 intranat3
- 172.18.127.58 www58
复制代码
下面是新旧ip对应表
- $cat ip_table
- 192.168.168.250 192.168.200.250
- 192.168.100.1 192.168.168.1
- 192.168.100.2 192.168.168.2
- 10.0.100.3 192.168.100.3
- 172.18.127.58 192.168.1.58
复制代码
结果为
- 127.0.0.1 localhost.localdomain localhost
- 192.168.200.250 console
- 192.168.168.1 ims001
- 192.168.168.2 ims002
- 192.168.100.3 intranat3
- 192.168.1.58 www58
复制代码
有人可以帮忙实现一下吗? |
|