Configure multi-Nic access network in ubuntu

Source: Internet
Author: User
In ubuntu, configure multiple NICs to access the network. Step 1: switch to the root user. Shell code suroot Step 2: Edit the network configuration file Shell code www.2cto. comvi/etc/network/interfaces Step 3: Add the following to/etc/network/interfaces...
In ubuntu, configure multiple NICs to access the network. Step 1: switch to the root user. Shell code su root Step 2: Edit the network configuration file Shell code www.2cto.com vi/etc/network/interfaces Step 3: add the following Java code to/etc/network/interfaces # Default initial configuration: auto lo iface lo inet loopback # Add auto wlan1 iface wlan1 inet static # specify the wireless network card to be connected routing, ssid wireless-essid TP-LINK for the specified wireless route
# Specify the wireless route password ## wireless-key AAAAABBBBB address 192.167.1.71 netmask 255.255.255.0 network 192.167.1.0 broadcast 192.167.1.255 gateway 192.167.1.1 nameserver 192.167.1.1 Step 4: restart the network Shell code/etc/init. step 5 of d/networking restart: add a route. When adding a route, you must specify the NIC to use. Shell code route add-net 10.46.0.0 netmask 255.255.0.0 gw 192.167.1.1 wlan1

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.