Professional Documents
Culture Documents
--------------------------CauHinh-SW1---------------------------
/===============Cau-1===============/
enable
config terminal
no ip domain-lookup
end
wr
========================================
show int trunk //kiem tra trang thai cac cong trunk
========================================
config terminal
vlan 10
name VLAN10
vlan 20
name VLAN20
vlan 30
name VLAN30
end
wr
config terminal
vtp pruning
end
wr
config terminal
no cdp run
end
wr
========================================
/===============Cau-2===============/
config terminal
end
wr
config terminal
int e0/3
spanning-tree portfast
end
wr
--------------------------CauHinh-SW2-----------------------
/===============Cau-1===============/
enable
config terminal
no ip domain-lookup
end
wr
=======================================
config terminal
end
wr
config terminal
no cdp run
end
wr
=======================================
/===============Cau-2===============/
config terminal
wr
=======================================
config terminal
int e0/0
end
wr
config terminal
int e0/2
spanning-tree portfast
end
wr
/===============Cau-8===============/
config terminal
int e0/2
switchport port-security
end
wr
-------------------------CauHinh-SW3----------------------
/===============Cau-1===============/
enable
config terminal
no ip domain-lookup
end
wr
=======================================
sh int trunk
config terminal
end
wr
config terminal
no cdp run
end
wr
=======================================
/===============Cau-2===============/
config terminal
end
wr
config terminal
int e0/1
end
wr
config terminal
spanning-tree portfast
end
wr
/===============Cau-7===============/
config terminal
exit
end
wr
---------------------------CauHinh-R1-----------------------------
/==========Cau Hinh-Cac-Interface==========/
enable
config terminal
no ip domain-lookup
int loopback0
no shut
int e0/1
no shut
int e0/2
no shut
int e0/0
no shut
end
wr
/===============Cau-3===============/
enable
config terminal
int e0/0.10
encapsulation dot1q 10
no shut
int e0/0.20
encapsulation dot1q 20
ip address 172.16.20.1 255.255.255.0
no shut
end
wr
/===============Cau-4===============/
enable
config terminal
router ospf 1
router-id 1.1.1.1
end
wr
=======================================
/===============Cau-5===============/
config terminal
int e0/2
ip ospf cost 21
end
wr
=======================================
enable
config terminal
int e0/0.20
ip helper-address 172.16.12.2
end
wr
/===============Cau-7===============/
enable
config terminal
int e0/0
ip helper-address 172.16.12.2
end
wr
=======================================
telnet 172.16.2.1
/===============Cau-11===============/
enable
config terminal
int loopback1
no shut
int loopback2
no shut
exit
int e0/2.13
encapsulation dot1q 13
exit
end
wr
=======================================
ping 192.168.33.1
ping 192.168.3.1
=======================================
config terminal
ipv6 unicast-routing
int loopback 1
int e0/2.13
end
wr
=======================================
ping 2016:13: :3
ping 2016:3: :1
=======================================
config terminal
end
wr
=======================================
ping 2016:3::1
----------------------------CauHinh-R2--------------------------
/===============Cau Hinh-Cac-Interface=============/
enable
config terminal
no ip domain-lookup
int loopback0
no shut
int e0/1
no shut
int e0/2
no shut
int e0/0
no shut
end
wr
=======================================
do ping 172.16.12.1
do ping 172.16.22.2
/===============Cau-4===============/
enable
config terminal
router ospf 1
router-id 2.2.2.2
end
wr
=======================================
/===============Cau-6===============/
enable
config terminal
service dhcp
domain-name vnpro.org
dns-server 8.8.8.8
default-router 172.16.20.1
end
wr
=======================================
/===============Cau-7===============/
enable
config terminal
service dhcp
domain-name vnpro.org
dns-server 8.8.8.8
default-router 172.16.11.1
end
wr
=======================================
sh ip dhcp-binding
/===============Cau-9===============/
config terminal
line vty 0 4
access-class 1 in
end
wr
=======================================
config terminal
int e0/2
exit
wr
=======================================
telnet 172.16.22.2
vnpro
ping 172.16.10.2
-----------------------------CauHinh-R3--------------------------
/==========Cau Hinh-Cac-Interface==========/
enable
config terminal
no ip domain-lookup
int loopback 0
no shut
int e0/1
no shut
int e0/2
no shut
int e0/0
no shut
end
wr
=======================================
ping 172.16.13.1
do ping 172.16.23.2
do ping 200.0.0.254
/===============Cau-4===============/
enable
config terminal
router ospf 1
router-id 3.3.3.3
end
wr
=======================================
show run | section ospf //kiem tra day du cac network chua
/===============Cau-5===============/
config terminal
int e0/0
ip ospf cost 21
end
wr
=======================================
/===============Cau-10===============/
enable
config terminal
int e0/2
ip nat outside
exit
ip nat inside
router ospf 1
default-information originate
end
wr
=======================================
/===============Cau-10===============/
config terminal
end
wr
=======================================
sh ip nat translations
/===============Cau-11===============/
enable
config terminal
int loopback1
no shut
no shut
int e0/0.13
encapsulation dot1q 13
exit
end
wr
=======================================
ping 192.168.11.1
ping 192.168.1.1
=======================================
config terminal
ipv6 unicast-routing
int loopback 1
int e0/0.13
end
wr
=======================================
ping 2016:1::1
=======================================
config terminal
end
wr
=======================================
ping 2016:1: :1
===================HOST1===============
ping 172.16.20.2
ping 172.16.30.1
ping 172.16.22.2
ping 172.16.2.1
ping 172.16.3.1
ping 200.0.0.
ping 172.16.1.1
ping 172.16.22.2
ping 172.16.22.2
ping 8.8.8.8
===================HOST2==============
ping 172.16.30.1
ping 172.16.10.2
ping 172.16.22.2
ping 172.16.2.1
ping 172.16.3.1
ping 172.16.1.1
ping 200.0.0.7
ping 172.16.22.2 -P 6 -p 80
ping 172.16.22.2
ping 8.8.8.8
===================HOST3===============
dhcp -x
dhcp -r
dhcp -x
dhcp -r
ping 172.16.22.2
ping 172.16.2.1
ping 172.16.3.1
ping 172.16.22.2
ping 8.8.8.8