Linux dual-Nic intranet/Internet settings (Raspberry Pi)
Source: Internet
Author: User
Linux dual-Nic intranet/Internet settings (Raspberry Pi) Raspberry Pi dual-Nic internet/intranet settings, there are the following methods. 1) use a wired network to connect a PC to a gateway. 2) the other is wired to the intranet and wireless to the Internet. Www.2cto.com, even if there are multiple NICs in the configuration file, the intranet and internet settings (Raspberry Pi) on the dual Nic of linux are as follows. 1) use a wired network to connect a PC to a gateway. 2) the other is wired to the intranet and wireless to the Internet. Www.2cto.com, the most important thing is that even if there are multiple NICs in the configuration file, there can only be one gateway, otherwise the Internet will not be accessible. Some routers have static IP addresses in dhcp mode. you also need to bind the IP address to the MAC address to solve the problem of accessing the Internet. Www.2cto.com The author uses the wireless network card model is EDUP EP-N8508GS Gold Edition mini USB wireless network card this network card needs to install driver in windows, I will share with you the second method of surfing the internet when I use pi without a drive. if you need to learn more about the first method, please leave a message to follow. The following figure shows the modified/etc/networking/interfaces file auto lo iface lo inet loopback # ethernet, ethernet card, which is directly connected to the laptop, and set static IP auto eth0 # iface eth0 inet dhcp iface eth0 inet static address 192.168.2.100 netmask 255.255.255.0 # gateway 192.168.2.1 # company. The company has a password, automatically obtain the IP auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid network name wpa-psk password # home auto wlan0, with a password in the house, manually set static IP allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.199 netmask 255.255.255.0 # gateway 192.168.1.1 wpa-ssid network name wpa-psk password
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.