Lab 2.1: (3) Cấu hình địa chỉ IP trên Interface VLAN của Cisco Switch

By , 0 View

Mục tiêu thực hành:
- Cấu hình địa chỉ IP trên interface vlan 1 của Cisco Switch là 172.16.0.253/24.
- Kiểm tra địa chỉ IP trên cổng giao tiếp interface vlan của Cisco Switch.
- Từ Cisco Switch thực hiện tác vụ ping tới các thiết bị khác.

Truy cập vào "Lab 2-1 - Cau hinh dia chi IP tren Interface VLAN cua Cisco Switch v1" tại Public Unetlab Server 24/7 để thực hành.

Cấu hình địa chỉ IP trên interface vlan 1 của Cisco Switch là 172.16.0.253/24.
- Cấu hình IP trên interface vlan 1 để thiết bị Switch có thể giao tiếp với các thiết bị khác trong cùng Subnet.
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface vlan 1
*Feb  2 02:12:44.861: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
Switch(config-if)#ip address 172.16.0.253 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
*Feb  2 02:12:57.556: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
*Feb  2 02:12:58.561: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config)# 

- Khai báo ip default-gateway để thiết bị Switch có thể giao tiếp với các thiết bị khác Subnet.
Switch(config)#ip default-gateway 172.16.0.254
Switch(config)#end
Switch#

Kiểm tra địa chỉ IP trên cổng giao tiếp interface vlan của Cisco Switch.
Switch#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
Ethernet0/0            unassigned      YES unset  up                    up      
Ethernet0/1            unassigned      YES unset  up                    up      
Ethernet0/2            unassigned      YES unset  up                    up      
Ethernet0/3            unassigned      YES unset  up                    up      
Vlan1                  172.16.0.253    YES manual up                    up      
Switch#

Từ Cisco Switch thực hiện tác vụ ping tới các thiết bị khác.
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
Switch#

Switch#ping 172.16.0.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.254, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 1/1/1 ms
Switch#

Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết. 


You Might Also Like

0 comments