In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Reference legend: Huawei Simulator (version number: version V100R002C00 1.2.00.370)
1. Experimental requirements:
The ip address of 1.PC is automatically obtained through DHCP and can be used on the public network.
2.R1 can remotely manage R2
Second, configuration demonstration:
Configuration of router R1
Sy
[Huawei] int g0/0/1
[Huawei-GigabitEthernet0/0/1] ip add 192.168.10.1 24
[Huawei-GigabitEthernet0/0/1] int g0/0/0
[Huawei-GigabitEthernet0/0/0] ip 12.0.0.1 24
[Huawei-GigabitEthernet0/0/0] q
[Huawei] dhcp enable
[Huawei] int g0/0/1
[Huawei-GigabitEthernet0/0/1]
[Huawei-GigabitEthernet0/0/1] dhcp select interface
[Huawei-GigabitEthernet0/0/1] dhcp server dns-list 2.2.2.2
Use PC to obtain the IP address through DHCP, as shown in the figure:
[Huawei] ip route-static 0.0.0.0 24 12.0.0.2 this is a static route, 12.0.0.2 is the ip address of router R2 g0and0 port 0, which will be configured on R2 later.
[Huawei] int g0amp 0Comp0 (Note: it is the egress interface of the router)
[Huawei-GigabitEthernet0/0/0] nat static global 218.8.8.8 inside 192.168.10.254 (convert the address 192.168.10.254 to the public network on 218.8.8.8)
[Huawei-GigabitEthernet0/0/0] nat static global 218.8.8.9 inside 192.168.10.253
Configuration of router R2
Sy
[Huawei] int g0/0/0
[Huawei-GigabitEthernet0/0/0] ip add 12.0.0.2 24
[Huawei] ip route-static 218.8.8.024 12.0.0.1 (router R2 does not know the route of the 192.168.10.0 network segment, nor does it know the route of the private network. So the default route is 218.8.8.0, which is converted to the public network through ANT. )
Test connectivity through the ping command, as shown in the figure:
When we can communicate, let's take a look at the communication situation by grabbing the bag.
By grabbing the packet, you can see that when the host ping 12.0.0.2, the target ip has been changed to 218.8.8.8 at the exit of the egress router.
Remote Management:
Configure on router R2
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] au
[Huawei-ui-vty0-4] authentication-mode pa
[Huawei-ui-vty0-4] authentication-mode password
Please configure the login password (maximum length 16): adc123
[Huawei-ui-vty0-4] user privilege level 3 (lowest level is 3)
Remote route 2 on router 1.
Telnet 12.0.0.2
Press CTRL_] to quit telnet mode
Trying 12.0.0.2...
Connected to 12.0.0.2...
Login authentication
Password:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.