From d2c8d3f905818f129d4b7565b99e14c291eaa1f1 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Thu, 7 Aug 2025 19:21:34 +0800 Subject: [PATCH] =?UTF-8?q?dhcpcd.conf=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dhcpcd.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dhcpcd.conf diff --git a/dhcpcd.conf b/dhcpcd.conf new file mode 100644 index 0000000..b08a585 --- /dev/null +++ b/dhcpcd.conf @@ -0,0 +1,12 @@ +# 固定 IP +interface eth0 +static ip_address=192.168.1.16/24 + +static routers=192.168.1.1 +static domain_name_servers=211.137.96.205 114.114.114.114 8.8.8.8 +# static domain_name_servers=114.114.114.114 8.8.8.8 +#static ip6_address=fd00:485f:8b6:5fa5::1002/64 + +# 使用旁路由 +#static routers=192.168.1.13 +#static domain_name_servers=192.168.1.13