Because Ruijie is not enough, the extreme guests are bumping around looking for free internet access. Some time ago, they found that they could use the 6 free internet access methods immediately. They found that after completing Ruijie and then they would not be able to access the intranet IP after 6 and they would not be able to access the school. The FTP, the remote desktop in the school lab could not access the dormitory computer, and our visit to the campus network and free internet access seemed to be an incomparable thing for both the fish and the paw.The guests here share with you how to use the command line to access the intranet and extranet at the same time.
I. Problem Analysis
We know that a gateway is an IP address that connects two different networks or one network to other networks.Pole users enter "ipconfig" at the command line to get the local IP information as follows: IPconfig As apparent from the "Local Connection 3" immediately 6 and the "local connection" campus network is not on a network segment.Then I enter the "route print" command line to get the local routing information: IPV4 routing table [/ caption] The key is the first figure: The corresponding gateway with a network destination of 0.0.0.0 is a gateway address of immediately 6: 22.214.171.124, which means that we will access all the network targets that do a special record and will deliver the data to the 126.96.36.199 gateway instead of the campus network gateway. 10.22.56.1.The polar guests also had no access to the school's internal IP after joining Ruijie and 6 immediately. For example, the college FTP server IP: 10.128.48.10 and the school lab computer with IP 192.168.4.* could not access the computer in my dormitory.So what I need to do is configure the gateway for these IPs for the campus network gateway. The following is a method of using the command line to access both internal and external networks, not just for the campus network.
Second, use the command line to visit the internal and external network at the same time
In the state of connecting to the campus network only, enter the command line ipconfig, get the "default gateway": 10.22.56.1, subnet mask: 255.255.255.0 [caption id="attachment_1252" align="aligncenter" width="634"] Get the campus network gateway Command indicator for configuring gateway and subnet mask for intranet IP (admin running):
Route add -p 10.22.0.0 mask 255.255.255.0 10.22.56.1 route add -p 10.128.0.0 mask 255.255.255.0 10.22.56.1 route add -p 192.168.4.0 mask 255.255.255.0 10.22.56.1
This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!
Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/using-the-command-line-to-configure-routing-and-access-internet-and-intranet-2.html