Showing posts with label CNAM (Labs). Show all posts
Showing posts with label CNAM (Labs). Show all posts

Sunday, June 19, 2016

Cau hinh IPv6

- 128 bit
- quy tac rut gon dia chi ipv6

Saturday, June 18, 2016

1. ACL

2. DHCP

Mot Router co the tao nhieu Pool tuong ung voi nhieu dai dia chi cap IP

R(Config)#ip dhcp excluded-address 192.168.10.1 192.168.10.9
R(Config)#ip dhcp excluded-address 192.168.10.254
R(Config)#ip dhcp pool LAN-POOL-1
R(Config)#network 192.168.10.0 255.255.255.0

R(Config)#default-router 192.168.10.1

3. NAT

Cho phep cac di chi IP private ra ngoai duoc internet

NAT tĩnh:
Thuong dung cho cac server public

R2(config)#ip nat inside source static 192.168.10.10 209.165.200.226
R2(config)#ip nat outside source static 209.165.200.254 10.1.1.1
R2(config)#ip nat outside source static 209.165.200.254 10.2.2.1

R2(config)#interface f0/0
R2(config-if)#ip nat inside
R2(config-if)#exit

R2(config)#interface f0/1
R2(config-if)#ip nat outside
R2(config-if)#exit

Nat dong:
- Interface
Chuc nang cua cac modem o nha, nhieu dia chi private voi nhieu interface



- Pool
Dung can bang tai cho cac server



Thursday, June 16, 2016

1. HDLC encapsulation

Router(config-if)#encapsulation HDLC

2. PPP encapsulation

HDLC is default encapsulation on cisco router, PPP using to connect non-cisco router

Authentication: PAP or CHAP
Pap - send password
Chap - same password

PAP 

Router#username r3 password 0 ccna123

interface Serial0/1/0
ip address 10.0.1.2 255.255.255.0
encapsulation ppp
ppp authentication pap
ppp pap sent-username r1 password 0 ccna123


CHAP

Router#username pnh1 password 0 cisco

interface Serial0/1/0
ip address 10.0.1.2 255.255.255.0
encapsulation ppp

ppp authentication chap

3. Frame relay/ATM

Cấu hình Poit To Point

======= Trên R biên================
interface Serial0/0/0
no ip address
encapsulation frame-relay
!
interface Serial0/0/0.201 point-to-point
ip address 192.168.4.1 255.255.255.0
frame-relay interface-dlci 201

Tương tự cho R với dlci 301
========Trên R nối================
interface Serial0/0/0
no ip address

encapsulation frame-relay
!
interface Serial0/0/0.102 point-to-point
ip address 192.168.4.2 255.255.255.0
frame-relay interface-dlci 102
clock rate 2000000
!
interface Serial0/0/0.103 point-to-point
ip address 192.168.5.2 255.255.255.0

frame-relay interface-dlci 103

Tuesday, June 7, 2016

1. Vlan

interface FastEthernet0/11
switchport access vlan 10

switchport mode access

2. DTP

3. Inter Vlan

switchport mode trunk

interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 172.17.10.1 255.255.255.0

inter fa0/0 no shut

4. VTP

Switch(config)# vtp domain name

Switch(config)# vtp mode mode

Switch(config)# vtp password password

show vtp status
show vtp counters

5. Port security

wg_sw_2950(config)#interface fa0/1
wg_sw_2950(config-if)#switchport mode access
wg_sw_2950(config-if)#switchport port-security
wg_sw_2950(config-if)#switchport port-security maximum 1
wg_sw_2950(config-if)#switchport port-security mac-address 0008.eeee.eeee
wg_sw_2950(config-if)#switchport port-security violation shutdown

6. STP

SW(config)#spanning-tree vlan 5 root
SW(config)#spanning-tree vlan 5 secondary

7. Etherchannel

SW(config-if)#channel-group 1 mode active

show interfaces etherchannel

8. HRPS, VRRP

Default Gateway Redundancy

HSRP:

RouterA(config)# interface GigabitEthernet0/0
RouterA(config-if)# ip address 10.1.10.2 255.255.255.0
RouterA(config-if)# standby 1 ip 10.1.10.1
RouterA(config-if)# standby 1 priority 110
RouterA(config-if)# standby 1 preempt

Router A chạy ở chế độ Active có lệnh preempt, router B chạy chế độ standby không cần lệnh này.

Monday, June 6, 2016

0. Dinh Tuyen Tinh

Cau hinh defaut route: de mac dinh chuyen tiep goi tin ra ngoai
ip route 0.0.0.0 0.0.0.0 200.1.1.2 

1. RIP

router rip
version 2
network 172.16.0.0
network 192.168.1.0
network 192.168.10.0

2. EIGRP

router eigrp 1 -- Giá trị AS, các router có cùng giá trị này
network 192.168.1.0

network 192.168.10.0

3. OSPF

router ospf 3
network 172.16.1.0 0.0.0.7 area 0
network 192.168.10.4 0.0.0.3 area 0
network 192.168.10.8 0.0.0.3 area 0

DR/BDR: interface - ip ospf priority 50 (càng cao thì càng dễ thành DR)
RouterA(config)#interface fastEthernet0/0
RouterA(config-if)#ip ospf priority 255

Kiểm tra bảng định tuyến:

show ip route
show ip ospf interface

Saturday, May 7, 2016

0. Xem cấu hình thiết bị

show version
show run
show ip inter brief -- xem trạng thái cổng
show inter description
show ip route

Lưu cấu hình thiết bị:
copy running-config startup-config
do write

1. Đặt tên, password

Đặt Banner:
banner motd $ten_banner$

Đặt tên host:
hostname ten_host

password enable: 
enable password ten_password
enable secrect ten_password

password telnet: 
line vty 0 4
password ten_password

2. Cấu hình cổng

Inter fa0/0
Ip add 10.0.0.1 255.255.255.0
no shut

3. Một số câu lệnh cơ bản

Câu lệnh xóa cấu hình đã lưu trên NVRAM và khởi động lại:
Router# erase startup-config
Router# reload
Câu lệnh chống trôi dòng lệnh:
line console 0
logging synchronous

Chú ý: Phần mạng connect vào Router phải đặt Default gateway là địa chỉ IP của port router kết nối với mạng đó.


(Sưu tầm)

Chuyên mục

Bài viết theo tháng

Bài đăng gần nhất