Article directory
draw topology
add device
Drag the required device in the device list to the appropriate position in the topology area, or click the device icon, and then click again at the appropriate position in the topology area to place the device, such as
this
connect device
Up to now, each device is still relatively independent. We need to connect them in an appropriate way to form a whole. We can first connect the three computers (terminal devices) to the connection area on the switch. The golden lightning
icon For automatic connection, we don’t need to choose the specific port of the connected device when using it. It is more convenient to use for beginners.
Click this icon, and then click the two devices that need to be connected in turn to connect successfully.
Like this
Device connection status
Each small dot represents a different port of a device, and the color of the dot represents the connection status. The switch will turn green after waiting for a period of time, that is, the connection status
router open port
What about devices that cannot connect automatically?
For example, on a router
, we can see that the small dot on the port is red and will not automatically turn green. The router port is closed by default and needs to be opened manually to complete the connection.
How to open it? Currently we can use two methods
Method 1: Graphical Operation
Click the router device icon to enter the configuration page, enter the corresponding port, check the area as shown in the figure, and you can open it.
Note that the port that needs to be opened is the connection port and the ports connected to the two routers are open to connect
. Now, The small dot turns green, and the two routers are connected
Method 2: command operation
You can also open the port through the command operation.
Here we will demonstrate first. The details and knowledge points will be further explained in the future.
In this way, a port of a router can be opened.
Show port numbers on topology
Now , we can see that the port is successfully connected in the topology, but we cannot directly see the port number, which will cause a lot of trouble in subsequent operations. We need to change the settings to display the port number
.
You can directly see the port number information.
If the port number information overlaps, you can change the device location to view it.
terminal interface
Click a terminal icon in the topology,
there will be functions we often use, such as ip configuration, terminal command interface, etc.
Configure IP address
This part requires some understanding of IP addresses and related knowledge. Here we all use IPV4 addresses. If you
don’t know the basics of IP addresses, let’s learn it first: Detailed explanation of IP addresses
custom configuration rules
The author is used to setting the largest available IP address in the network segment as the gateway address, and the second largest address as the DNS address. The IP address starts from 1, which is convenient for the complete system configuration in the future. The operation is like a standard class C network
segment: 192.168.1.0/24
The first configured device address in the network segment is 192.168.1.1/24
The gateway address is 192.168.1.254/24
The DNS address is 192.168.1.253/24
This series will be configured according to this rule
Configure IP addresses for terminal devices
Click a terminal icon in the topology,
there will be functions we often use, such as ip configuration, terminal command interface, etc.
Open the ip configuration interface
There are two ways to configure the IP address for the terminal
Manually configure a static address
From top to bottom: IP address, subnet mask, gateway, DNS service address
Manually enter the configuration and
the DNS address does not need to be configured first
DHCP automatically obtains an address
We will introduce in the follow-up article, configure the DHCP server, and automatically obtain the address
Configure IP addresses for devices such as routers
In the router command configuration interface, enter in the global configuration mode (introduced below):
ip add ip地址 子网掩码
Such as: ip add 192.168.1.3 255.255.255.0
test connectivity
Ping on the IP terminal needs to test the IP address of the device and test the connectivity
This time, the three terminals are in the same network segment and can communicate with each other without configuring routing. Let’s test it.
Ping 192.168.1.2 from 192.168.1.1
ping
Articles in the same series
Basic Getting Started Tutorial
[Routing and switching technology] Cisco Packet Tracer basic tutorial (1)
[Routing and switching technology] Cisco Packet Tracer basic tutorial (2)
[Routing and switching technology] Cisco Packet Tracer basic tutorial (3)
Specific function articles
Three Command Modes for Cisco Packet Tracer Configuration Operation
Cisco Packet Tracer Configuration Static Routing
Cisco Packet Tracer Configuration Dynamic Routing (RIP, OSPF, EIGRP)
Cisco Packet Tracer Switch VLAN Configuration
Cisco Packet Tracer Router Subinterface
My ability is limited, insufficient, please point out the mistakes, if you
have any questions, please leave a comment