고정 IP를 먼저 설정하고 운없이 연결을 추가하려고했습니다. 그런 다음 [this] [1]을 수행했습니다. 이제 연결이 나타나지만 인터넷이 작동하지 않습니다. 다음 단계와 현재 구성 파일은 다음과 같습니다.
jab@jab-Meerkat:~$ ifconfig -a
enp0s25 Link encap:Ethernet HWaddr b8:ae:ed:78:3e:35
inet addr:192.168.1.34 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::533a:51cc:79e0:5436/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5296 errors:0 dropped:0 overruns:0 frame:0
TX packets:4777 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4933463 (4.9 MB) TX bytes:669741 (669.7 KB)
Interrupt:20 Memory:aa100000-aa120000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2102 errors:0 dropped:0 overruns:0 frame:0
TX packets:2102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:153808 (153.8 KB) TX bytes:153808 (153.8 KB)
wlp2s0 Link encap:Ethernet HWaddr 34:13:e8:40:32:b0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
jab@jab-Meerkat:~$ ip route show
default via 192.168.1.1 dev enp0s25 proto static metric 100
169.254.0.0/16 dev enp0s25 scope link metric 1000
192.168.1.0/24 dev enp0s25 proto kernel scope link src 192.168.1.34 metric 100
jab@jab-Meerkat:~$ sudo nano /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq
[ifupdown]
managed=true
jab@jab-Meerkat:~$ sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
iface enp0s25 inet static
address 192.168.0.101
gateway 192.168.1.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
jab@jab-Meerkat:~$ sudo service network-manager restart
jab@jab-Meerkat:~$ sudo service networking restart
jab@jab-Meerkat:~$ sudo service resolvconf restart
jab@jab-Meerkat:~$ ifconfig
enp0s25 Link encap:Ethernet HWaddr b8:ae:ed:78:3e:35
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::7511:ffb:7266:ce31/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:711 errors:0 dropped:0 overruns:0 frame:0
TX packets:829 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:617772 (617.7 KB) TX bytes:100534 (100.5 KB)
Interrupt:20 Memory:aa100000-aa120000
또한 네트워킹 서비스를 다시 시작하고 ifconfig를 수행 한 후 IP가 변경되지 않은 것처럼 컴퓨터를 재부팅했습니다. 또한 재부팅이 동적 IP에 자동으로 연결된 후 어떻게해야합니까? 왜? 내가 무엇을 놓치고 있는지 정말로 모른다. 도움을 주셔서 감사합니다.