Lecture 12- IP addressing on Cisco packet tracer | CCNA Hindi | Network Zeal
214 بار بازدید -
2 ماه پیش
-
Cisco Packet Tracer is a
Cisco Packet Tracer is a powerful network simulation tool that allows users to create network topologies, configure devices, and simulate network traffic. One of the fundamental tasks in setting up a network is configuring IP addresses on various devices such as routers, switches, and PCs. Here’s a step-by-step guide to configuring IP addresses on different devices using Cisco Packet Tracer:
Configuring IP Addresses on PCs
1. **Add a PC to the Workspace**:
- Drag and drop a PC from the "End Devices" section to the workspace.
2. **Open the PC's Configuration**:
- Click on the PC to open its configuration window.
3. **Configure the IP Address**:
- Go to the "Desktop" tab.
- Select "IP Configuration".
- Enter the desired IP address, subnet mask, and default gateway.
Configuring IP Addresses on Routers
1. **Add a Router to the Workspace**:
- Drag and drop a router from the "Network Devices" section to the workspace.
2. **Open the Router's Configuration**:
- Click on the router to open its configuration window.
3. **Configure the IP Address on an Interface**:
- Go to the "Config" tab.
- Select the interface you want to configure (e.g., GigabitEthernet0/0).
- Enable the interface by turning on the "Port Status".
- Enter the IP address and subnet mask.
4. **Alternatively, Use the CLI**:
- Go to the "CLI" tab.
- Enter the following commands:
```
Router enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit
Router# write memory
```
Configuring IP Addresses on Switches
1. **Add a Switch to the Workspace**:
- Drag and drop a switch from the "Network Devices" section to the workspace.
2. **Open the Switch's Configuration**:
- Click on the switch to open its configuration window.
3. **Configure the IP Address on the Management VLAN**:
- Go to the "Config" tab.
- Select the VLAN interface (e.g., VLAN 1).
- Enter the IP address and subnet mask.
4. **Alternatively, Use the CLI**:
- Go to the "CLI" tab.
- Enter the following commands:
```
Switch enable
Switch# configure terminal
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.2 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# exit
Switch# write memory
```
Verifying IP Address Configuration
1. **From a PC**:
- Go to the "Desktop" tab.
- Select "Command Prompt".
- Use the `ipconfig` command to view the IP address configuration.
- Use the `ping` command to test connectivity to another device.
2. **From a Router or Switch**:
- Use the `show ip interface brief` command in the CLI to view the IP address configuration.
- Use the `ping` command to test connectivity to another device.
Example Network Configuration
Let's set up a simple network with one router, one switch, and two PCs.
1. **Add Devices**:
- Add a router, switch, and two PCs to the workspace.
2. **Connect Devices**:
- Connect each PC to the switch using straight-through cables.
- Connect the switch to the router using a straight-through cable.
3. **Configure Router**:
```
Router enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit
Router# write memory
```
4. **Configure PCs**:
- PC1:
- IP address: 192.168.1.2
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
- PC2:
- IP address: 192.168.1.3
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
5. **Test Connectivity**:
- Open the command prompt on PC1 and ping PC2 using the `ping 192.168.1.3` command.
Following these steps, you can configure IP addresses on various devices in Cisco Packet Tracer, creating a functional network topology for your simulations and practice.
Configuring IP Addresses on PCs
1. **Add a PC to the Workspace**:
- Drag and drop a PC from the "End Devices" section to the workspace.
2. **Open the PC's Configuration**:
- Click on the PC to open its configuration window.
3. **Configure the IP Address**:
- Go to the "Desktop" tab.
- Select "IP Configuration".
- Enter the desired IP address, subnet mask, and default gateway.
Configuring IP Addresses on Routers
1. **Add a Router to the Workspace**:
- Drag and drop a router from the "Network Devices" section to the workspace.
2. **Open the Router's Configuration**:
- Click on the router to open its configuration window.
3. **Configure the IP Address on an Interface**:
- Go to the "Config" tab.
- Select the interface you want to configure (e.g., GigabitEthernet0/0).
- Enable the interface by turning on the "Port Status".
- Enter the IP address and subnet mask.
4. **Alternatively, Use the CLI**:
- Go to the "CLI" tab.
- Enter the following commands:
```
Router enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit
Router# write memory
```
Configuring IP Addresses on Switches
1. **Add a Switch to the Workspace**:
- Drag and drop a switch from the "Network Devices" section to the workspace.
2. **Open the Switch's Configuration**:
- Click on the switch to open its configuration window.
3. **Configure the IP Address on the Management VLAN**:
- Go to the "Config" tab.
- Select the VLAN interface (e.g., VLAN 1).
- Enter the IP address and subnet mask.
4. **Alternatively, Use the CLI**:
- Go to the "CLI" tab.
- Enter the following commands:
```
Switch enable
Switch# configure terminal
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.2 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# exit
Switch# write memory
```
Verifying IP Address Configuration
1. **From a PC**:
- Go to the "Desktop" tab.
- Select "Command Prompt".
- Use the `ipconfig` command to view the IP address configuration.
- Use the `ping` command to test connectivity to another device.
2. **From a Router or Switch**:
- Use the `show ip interface brief` command in the CLI to view the IP address configuration.
- Use the `ping` command to test connectivity to another device.
Example Network Configuration
Let's set up a simple network with one router, one switch, and two PCs.
1. **Add Devices**:
- Add a router, switch, and two PCs to the workspace.
2. **Connect Devices**:
- Connect each PC to the switch using straight-through cables.
- Connect the switch to the router using a straight-through cable.
3. **Configure Router**:
```
Router enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit
Router# write memory
```
4. **Configure PCs**:
- PC1:
- IP address: 192.168.1.2
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
- PC2:
- IP address: 192.168.1.3
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
5. **Test Connectivity**:
- Open the command prompt on PC1 and ping PC2 using the `ping 192.168.1.3` command.
Following these steps, you can configure IP addresses on various devices in Cisco Packet Tracer, creating a functional network topology for your simulations and practice.
2 ماه پیش
در تاریخ 1403/04/04 منتشر شده
است.
214
بـار بازدید شده