-[ ] I have checked the [discussions](https://github.com/ctripcorp/apollo/discussions)
-[ ] I have searched the [issues](https://github.com/ctripcorp/apollo/issues) of this repository and believe that this is not a duplicate.
-[ ] I have checked the [FAQ](https://github.com/ctripcorp/apollo/wiki/%E9%83%A8%E7%BD%B2&%E5%BC%80%E5%8F%91%E9%81%87%E5%88%B0%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) of this repository and believe that this is not a duplicate.
-[ ] I have checked the [FAQ](https://ctripcorp.github.io/apollo/#/zh/faq/common-issues-in-deployment-and-development-phase) of this repository and believe that this is not a duplicate.
**Describe the bug**
A clear and concise description of what the bug is.
可以分别修改`apollo-configservice`和`apollo-adminservice`的startup.sh,通过JVM System Property传入-D参数,也可以通过OS Environment Variable传入,下面的例子会把`docker0`和`veth`开头的网卡在注册到Eureka时忽略掉。
另外一种方式是直接指定要注册的IP,可以修改startup.sh,通过JVM System Property在运行时传入,如`-Deureka.instance.ip-address=${指定的IP}`,也可以通过OS Environment Variable,如`EUREKA_INSTANCE_IP_ADDRESS=${指定的IP}`,或者也可以修改apollo-adminservice或apollo-configservice 的bootstrap.yml文件,加入以下配置
### 1.4.3 指定要注册的URL
``` yaml
eureka:
instance:
ip-address:${指定的IP}
可以分别修改`apollo-configservice`和`apollo-adminservice`的startup.sh,通过JVM System Property传入-D参数,也可以通过OS Environment Variable传入,下面的例子会指定注册的URL为`http://1.2.3.4:8080`。
JVM System Property示例:
```properties
-Deureka.instance.homePageUrl=http://1.2.3.4:8080
-Deureka.instance.preferIpAddress=false
```
最后一种方式是直接指定要注册的IP+PORT,可以修改startup.sh,通过JVM System Property在运行时传入,如`-Deureka.instance.homePageUrl=http://${指定的IP}:${指定的Port}`,也可以通过OS Environment Variable,如`EUREKA_INSTANCE_HOME_PAGE_URL=http://${指定的IP}:${指定的Port}`,或者也可以修改apollo-adminservice或apollo-configservice 的bootstrap.yml文件,加入以下配置
可以修改startup.sh,通过JVM System Property在运行时传入,如`-Deureka.instance.ip-address=${指定的IP}`,或者也可以修改apollo-adminservice或apollo-configservice 的bootstrap.yml文件,加入以下配置
可以修改startup.sh,通过JVM System Property在运行时传入,如`-Deureka.instance.homePageUrl=http://${指定的IP}:${指定的Port}`,或者也可以修改apollo-adminservice或apollo-configservice 的bootstrap.yml文件,加入以下配置