MAC enables WiFi and wired simultaneous access to intranet and Internet

Source: Internet
Author: User

Open Terminal, enter the following command

# View current routing table

Netstat-rn

# Get the default route

Route get 0.0. 0.0

# Delete Default route

sudo route-n Delete default 10.2. 0.1

# Add a public network gateway

sudo Route add-net 0.0.0.0 10.2. 0.1

# Add intranet Gateway

sudo route add-net 194.0. 0.0 194.2. 100.254

After the command is entered, open the settings, open the network

There is a priority order problem in the network attribute that has lines and no lines.

The basic principle is that the NIC accesses the Internet and his priority is on top (WiFi).

Select "Set service order" and the following window appears


Drag the NIC you want to access the Internet to the top, remember to save and apply.

MAC enables WiFi and wired simultaneous access to intranet and Internet

Related Article

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.