8000 how to set static ip on arch · jestarray/notes@3cc51fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cc51fb

Browse files
authored
how to set static ip on arch
1 parent 690c588 commit 3cc51fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,23 @@ there are certain settings you can make that cause extremely expensive and intru
172172
(system* "/usr/bin/pdftoppm" "-png" (path->string full-path) (filename-no-ext file)))
173173
174174
```
175+
176+
## configure static ip on arch during installation:
177+
https://bbs.archlinux.org/viewtopic.php?id=265008
178+
179+
1 - manually stopped systemd-networkd.service and systemd-resolved.service services
180+
181+
```
182+
systemctl stop systemd-networkd.service systemd-resolved.service
183+
```
184+
185+
2 - removed any auto-associated ip addr / ip routes.
186+
```
187+
ip address del 192.168.0.55/24 dev enp0s2
188+
ip route del 192.168.0.0/24 via 192.168.43.223 dev enp0s2
189+
```
190+
191+
3 - configured static IP address with dhcpcd:
192+
```
193+
dhcpcd -S ip_address=192.168.1.23/24 -S routers=192.168.1.1 -S domain_name_servers=192.168.1.1 -s 192.168.1.23/24 enp0s2
194+
```

0 commit comments

Comments
 (0)
0