내 Raspberry Pi에는 당분간 고정 IP가 있습니다. 이제 구성은 다음과 같습니다.
/etc/네트워크/인터페이스
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
그러나 이로 인해 사용 가능한 전체 DHCP IP 범위가 유지됩니다.
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:94:90:82 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.29/24 brd 192.168.2.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.2.30/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.31/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.32/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.33/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.34/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.35/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.36/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.37/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.38/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.39/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.41/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.42/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.43/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.44/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.45/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.40/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.46/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.47/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.49/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.50/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.51/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.52/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.53/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.54/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.55/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.56/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.57/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.58/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.59/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.60/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.61/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.62/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.63/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.64/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.65/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.66/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.67/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.68/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.69/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.70/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.71/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.72/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.73/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.74/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.75/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.77/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.78/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.79/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.80/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.81/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.82/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.83/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.84/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.85/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.86/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.87/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.88/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.89/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.90/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.91/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.92/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.93/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.94/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.95/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.96/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.97/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.98/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.99/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.100/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.101/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.102/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.103/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.104/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.105/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.106/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.107/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.108/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.109/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.110/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.111/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.112/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.113/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.114/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.115/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.116/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.117/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.118/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.119/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.120/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.121/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.122/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.123/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.124/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.125/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.126/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.127/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.128/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.129/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.130/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.131/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.132/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.133/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.134/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.135/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.136/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.137/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.138/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.139/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.141/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.142/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.143/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.144/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.145/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.146/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.147/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.148/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.149/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.150/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.151/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.152/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.153/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.154/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.155/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.156/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.157/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.158/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.159/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.161/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.162/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.163/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.164/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.165/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.166/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.167/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.168/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.169/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.170/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.171/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.172/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.173/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.174/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.175/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.176/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.177/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.178/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.179/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.180/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.181/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.182/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.183/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.184/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.185/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.186/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.187/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.188/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.189/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.190/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.191/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.192/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.193/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.194/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.195/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.196/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.197/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.198/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.200/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.199/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.24/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.26/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.27/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet 192.168.2.28/24 brd 192.168.2.255 scope global secondary eth0
valid_lft forever preferred_lft forever
문제가 무엇입니까?
(라즈베리 파이 GNU/리눅스 8)
답변1
답변
괜찮아요.
설명하다
이 출력은 단순히 192.168.2.24에서 192.168.2.200 범위의 모든 IP 주소를 임대할 수 있음을 나타냅니다. 192.168.2.25 및 192.168.2.199가 범위에서 누락되었습니다. 이는 귀하의 Raspbian과 다른 장치가 두 주소를 모두 얻었음을 의미합니다.
귀하의 가정은 정확합니다. 모든 주소를 사용할 수 있으므로 전체 풀이 예약되어 있습니다. 이렇게 생각해보세요:
우리는 당신이 가장 좋아하는 레스토랑에 가서 여주인에게 2인용 테이블을 원한다고 말합니다. 식당이 비어 있다고 가정하고 테이블 2개만 원한다고 하면 안주인이 예약 테이블 2개를 주는데 실제로는 식당 전체가 비어 있었습니다. 당사 및 기타 유료 고객을 위해 "예약"되어 있습니다. 그러면 "모든 테이블"이 예약됩니다. DHCP가 사용 가능한 주소 범위를 알고 있는 것처럼 여주인은 전체 범위가 사용 가능하다는 것을 알고 있습니다.