HCNA --- Day2

The second day of becoming a cyber security engineer

day2: basic equipment and operations

Learning Content:

1. Network cable
2, huawei simulator
3, configuration of huawei simulator

1. Network cable:

Network cable: RJ-45 twisted pair cable.
Wire sequence standard:
T-568A: green white green orange white blue white orange brown white brown
T-568B: orange white orange green white blue white green brown white brown

Two, huawei simulator and use

<huawei> <>--mode
device name

<huawei>-user mode, view and test

<huawei >system-view
[huawei] //System mode, can be configured

[huawei]quit //Quit mode
<huawei>

[huawei]interface GigabitEthernet 0/0/0
[huawei-GigabitEthernet0/0/0] //interface mode

[huawei]sysname HCNA //Modify the device name
[HCNA]

display clock //View time
2019-08-27 03:01:34
Tuesday
Time Zone(Default Zone Name): UTC+00:00

clock datetime 11:57:34 2019-9-22 //Modify device time

save //Save the configuration (do not save the configuration and restart the device and lose it)
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y

display current-configuration //View the current configuration

reboot //Restart the device

[Huawei]user-interface console 0 //Enter the device console port
[Huawei-ui-console0]authentication-mode password //Change the authentication mode to password authentication
[Huawei-ui-console0]set authentication password cipher hcna123 //Configure password
[ Huawei-ui-console0]user privilege level 15 //Configure user privileges

reset saved-configuration //Clear saved configuration

Command help system:
tab key: auto-complete commands
? : View unknown commands


Ctrl+A/E Go back to the front/back end of the current line
Ctrl+C Stop the currently running command
Ctrl+Z Go back to user mode directly

[hhh]user-interface console?
INTEGER<0-0> The first user terminal interface to be configured
Command format Command explanation

ARP: Address Resolution Protocol-Know the IP address of the other party, request the MAC address of the other party, and send it by broadcast.
Gateway: In the same broadcast domain as the local, the IP address of the device interface that can transmit data traffic to other broadcast domains

The role of the router:
1. Isolate the broadcast domain
2. Make path selection for the traffic it carries-After the routing
router receives the data packet, it checks the destination IP address and the local routing table for forwarding. If there is a destination in the table The path entry record of the target is
forwarded unconditionally; if there is no record, it is directly discarded.

Network construction steps:
1. Topology design
2. IP address planning
3. Configuration
1) IP address-all nodes that need IP addresses are equipped with legal IP addresses
2) routing-up to the entire network
3) test
4) strategy
5) optimization
4. Troubleshooting
5. Upgrade and maintenance

display ip interface brief //View device interface brief

Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned up down
GigabitEthernet0/0/2 unassigned down down

Interface:
GigabitEthernet 0/0/0
interface working mode interface number

工作模式 :
Ethernet 10M
FastEthernet 100M
GigabitEthernet 1000M
Ten-GigabitEthernet 10000M
Forty-GigabitEthernet 40000M
X-GigabitEthernet 100000M

Physical: indicates whether the current can be passed correctly
up: can
down: can not

Protocol: Indicates whether the data can be correctly identified and transmitted
up:
Yes down: No

If an interface of the router wants to transmit data normally, it must meet the double UP condition.

[Huawei]interface GigabitEthernet 0/0/0 //Enter the interface
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.111 24

[Huawei-GigabitEthernet0/0/0]display this //View the configuration in the current mode
[V200R003C00]

interface GigabitEthernet0/0/0
ip address 192.168.1.111 255.255.255.0

return

display ip routing-table //View the routing table
Route Flags: R-relay, D-download to fib

The Tables the Routing: Public
the Destinations: the Routes 10: 10
the next hop interfaces
Destination / Mask Proto Pre Cost Flags NextHop Interface

192.168.1.0/24  Direct  0    0           D   192.168.1.111   GigabitEthernet0/0/0

192.168.2.0/24  Direct  0    0           D   192.168.2.22    GigabitEthernet0/0/1

In the router's routing table, there are only direct routes by default; and the target recorded in the routing entry is a network range rather than a host IP.

All non-directly connected network ranges (network segments) are called unknown paths. The way to obtain unknown paths:
1) Manual configuration by the administrator (xianren guides the way)-static routing
2) A certain algorithm is run between routers to negotiate a path by itself -Dynamic routing

Static route:
[Huawei]ip route-static 192.168.3.0 24 192.168.2.33
prefix target network segment next hop

Next hop: to the target network segment, the IP address of the next inbound interface that receives this packet

The minimum requirement of a network is also the highest requirement-stability

Guess you like

Origin blog.csdn.net/weixin_45917388/article/details/109257623