Archlinux static network configuration today the lab Gateway does not know what's wrong, dhcpcd can only be allocated to 192.168.100. * The ip address, but the wired gateway in our lab is 192.168.200.1, so it is very painful to get on the network. it took a long time to complete the whole process. in the afternoon, I sorted it out to facilitate future reference... archlinux static network configuration today the lab Gateway does not know what's wrong, dhcpcd can only be allocated to 192.168.100. * The ip address, but the wired gateway in our lab is 192.168.200.1, so it's so painful that we can't get on the internet. it's not finished for a long time. in the afternoon, I 've sorted it out for future reference, I hope this will help my colleagues who have the same problems as me. Because the ip address assigned is 192.168.100. * and the gateway is 192.168.200.1, the ping will fail. Therefore, you must set static IP addresses to solve this problem. If you have installed ifconfig and route, you can simply run these two commands. First, let's talk about how to install the ifconfig and route commands. First, use ifconfig enp3s0 192.168.200.187 to set the static IP address. Here, enp3s0 is the device name. you can use ifconfig to first find out your device name. Then, use route add default gw 192.168.200.1 to set the default gateway. Then restart your network. If ifconfig and route are not available, the command is changed to: first, ip addr change 192.168.200.187 dev enp3s0 is the same as above. this is the device name, if you do not know, you can use ip addr show to view and then ip route add default via 192.168.200.1 to set the gateway, and then restart the network. if you can ping the network gateway and 8.8.8.8, if you cannot log on to the webpage, the dns problem occurs. in/etc/resolv. add a line of nameserver 8.8.8.8 to the conf file !!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.