0% found this document useful (0 votes)
18 views5 pages

CẤU HÌNH R1

Uploaded by

ntqm1106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

CẤU HÌNH R1

Uploaded by

ntqm1106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

CẤU HÌNH R1

Cấu hình địa chỉ IP cho các cổng:


Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to


up

R1(config-if)#exit
R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 192.168.11.1 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to


up

R1(config-if)#exit
R1(config)#interface Serial0/3/1
R1(config-if)#ip address 11.11.11.2 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/3/1, changed state to up

Cấu hình cấp phát IP động cho thiết bị nội bộ:


R1(config-if)#exit
R1(config)#ip dhcp pool LAN_CN
R1(dhcp-config)#network 192.168.10.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.10.1
R1(dhcp-config)#dns-server 172.16.1.10
R1(dhcp-config)#exit

Cấu hình định tuyến động RIPv2


R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 11.0.0.0
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.11.0
R1(config-router)#exit
CẤU HÌNH R3
Cấu hình địa chỉ IP cho các cổng:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#interface FastEthernet0/0
R3(config-if)#ip address 172.16.1.1 255.255.255.0
R3(config-if)#no shutdown

R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to


up

R3(config-if)#exit
R3(config)#interface FastEthernet0/1.3
R3(config-subif)#encapsulation dot1Q 3
R3(config-subif)#ip address 192.168.3.1 255.255.255.0
R3(config-subif)#exit
R3(config)#interface FastEthernet0/1.4
R3(config-subif)#encapsulation dot1Q 4
R3(config-subif)#ip address 192.168.4.1 255.255.255.0
R3(config-subif)#exit
R3(config)#interface FastEthernet0/1.5
R3(config-subif)#encapsulation dot1Q 5
R3(config-subif)#ip address 192.168.5.1 255.255.255.0
R3(config-subif)#exit
R3(config)#interface FastEthernet0/1.6
R3(config-subif)#encapsulation dot1Q 6
R3(config-subif)#ip address 192.168.6.1 255.255.255.0
R3(config-subif)#exit
R3(config)#interface FastEthernet0/1.7
R3(config-subif)#encapsulation dot1Q 7
R3(config-subif)#ip address 192.168.7.1 255.255.255.0
R3(config-subif)#exit
R3(config)#interface Serial0/3/0
R3(config-if)#ip address 10.10.10.2 255.255.255.0
R3(config-if)#exit

Cấu hình cấp phát IP động cho thiết bị trong nội bộ:
R3(config)#ip dhcp pool LAN_Kinhdoanh
R3(dhcp-config)#network 192.168.3.0 255.255.255.0
R3(dhcp-config)#default-router 192.168.3.1
R3(dhcp-config)# dns-server 172.16.1.10
R3(dhcp-config)#exit
R3(config)#ip dhcp pool LAN_KeToan
R3(dhcp-config)#network 192.168.4.0 255.255.255.0
R3(dhcp-config)#default-router 192.168.4.1
R3(dhcp-config)# dns-server 172.16.1.10
R3(dhcp-config)#exit
R3(config)#ip dhcp pool LAN_GiamDoc
R3(dhcp-config)#network 192.168.5.0 255.255.255.0
R3(dhcp-config)#default-router 192.168.5.1
R3(dhcp-config)#dns-server 172.16.1.10
R3(dhcp-config)#exit
R3(config)#ip dhcp pool LAN_NhanSu
R3(dhcp-config)#network 192.168.6.0 255.255.255.0
R3(dhcp-config)#default-router 192.168.6.1
R3(dhcp-config)#dns-server 172.16.1.10
R3(dhcp-config)#exit
R3(config)#ip dhcp pool LAN_Kinhdoanh
R3(dhcp-config)#dns-server 172.16.1.10
R3(dhcp-config)#exit
R3(config)#ip dhcp pool LAN_KeToan
R3(dhcp-config)#dns-server 172.16.1.10
R3(dhcp-config)#exit
Cấu hình định tuyến động RIPv2:
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 10.0.0.0
R3(config-router)#network 172.16.0.0
R3(config-router)#network 192.168.3.0
R3(config-router)#network 192.168.4.0
R3(config-router)#network 192.168.5.0
R3(config-router)#network 192.168.7.0
R3(config-router)#exit

CẤU HÌNH SW3:

Switch(config)#hostname SW3
SW3(config)#vlan 3
SW3(config-vlan)#name KinhDoanh
SW3(config-vlan)#exit
SW3(config)#vlan 4
SW3(config-vlan)#name KeToan
SW3(config-vlan)#vlan 5
SW3(config-vlan)#name GiamDoc
SW3(config-vlan)#vlan 6
SW3(config-vlan)#name NhanSu
SW3(config-vlan)#vlan 7
SW3(config-vlan)#name IoT
SW3(config-vlan)#exit
SW3(config)#interface fa0/1
SW3(config-if)#switchport mode trunk
SW3(config-if)#switchport trunk allowed vlan 3,4,5,6,7
SW3(config-if)#switchport trunk native vlan 1
SW3(config-if)#no shutdown
SW3(config-if)#exit
SW3(config)#interface fa0/3
SW3(config-if)#switchport mode trunk

SW3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to


up

SW3(config-if)#switchport trunk allowed vlan 3,4,5,6,7


SW3(config-if)#switchport trunk native vlan 1
SW3(config-if)#no shutdown
SW3(config-if)#exit
SW3(config)#interface fa0/2
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 3
SW3(config-if)#exit
SW3(config)#interface fa0/4
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 4
SW3(config-if)#exit
SW3(config)#interface fa0/5
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 5
SW3(config-if)#exit
SW3(config)#interface fa0/6
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 6
SW3(config-if)#exit
SW3(config)#interface fa0/7
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 7
SW3(config-if)#exit
CẤU HÌNH SW4:
SW4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW4(config)#vtp version 2
SW4(config)#vtp domain cisco.vn
Changing VTP domain name from NULL to cisco.vn
SW4(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW4(config)#interface fa0/1
SW4(config-if)#switchport mode trunk
SW4(config-if)#switchport trunk allowed vlan 3,4,5,6,7
SW4(config-if)#switchport trunk native vlan 1
SW4(config-if)#no shutdown
SW4(config-if)#end
SW4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW4(config)#interface fa0/2
SW4(config-if)#switchport mode access
SW4(config-if)#switchport access vlan 5
SW4(config-if)#exit
SW4(config)#interface fa0/3
SW4(config-if)#switchport mode access
SW4(config-if)#switchport access vlan 6
SW4(config-if)#exit
SW4(config)#interface fa0/4
SW4(config-if)#switchport mode access
SW4(config-if)#switchport access vlan 7
SW4(config-if)#exit

You might also like