Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Initial Configuration)
- -----------------------------------------
- en
- config t
- hostname MAIN_rtr
- banner motd $Unauthorized Access is strictly prohibited anybody caught will be dealt with the full extent of the law$
- line con 0
- password cisco
- login
- line vty 0 4
- password cisco
- login
- exit
- enable secret cisco
- service password-encryption
- ___________________________________________
- Creating vlan with port security
- --------------------------------------------
- vlan 100
- name Finance
- int range fa0/6-10
- swi mode acc
- switchport port-security
- switchport port-security maximum 1
- switchport port-security mac-address sticky
- switchport port-security violation shutdown
- swi acc vlan 100
- __________________________________________
- to shutdown port
- ------------------------------------------
- int fa0/5
- shut
- int range fa05-24,gig0/1-2
- __________________________________________
- VLAN TRUNKING
- ena
- config t
- int g0/1
- switchport mode trunk
- switchport trunk allowed vlan 1-100
- ________________________________________________________
- ip helper address
- int gig0/1.10
- ip helper-address 205.31.128.1
- ________________________________________________________
- Router on Stick
- (on router)
- int g0/0
- no shut
- int g0/0.100
- encapsulation dot1Q 100
- ip add 178.4.224.1 255.255.252.0(vlan gateway)
- int g0/0.200
- encapsulation dot1Q 200
- ip add 178.4.228.1 255.255.252.0(vlan gateway)
- int g0/0.300
- encapsulation dot1Q 100
- ip add 178.4.232.1 255.255.252.0(vlan gateway)
- (After configuring the router go to the switch port
- where the rotuer is connected)
- int fa0/24
- switchport mode access
- switchport mode trunk
- ______________________________________________________
- DHCP
- conf t
- ip dhcp pool vlan10
- network (network address) (subnet mask)
- default-router (default gateway adress)
- ip dhcp excluded-address ( first ip address) - (last ip address)
- ___________________________________________________________
- EIGRP
- ------------------------------------------------------------
- 1-6500...
- router eigrp (AN - autonomous number)
- no auto-summary
- network (WM - wildcard mask) inverse of the subnet1
- router eigrp 10
- no auto-summary
- network 192.168.10.64 0.0.0.255
- network 192.168.10.96 0.0.0.255
- ___________________________________________________________
- OSPF
- -----------------------------------------------------------
- router ospf 1
- network (network address) (wildcardmask) area #
- network 192.168.10.96 0.0.0.255 area 51
- ___________________________________________________________
- Redistribution ospf to eigrp
- -----------------------------------------------------------
- router ospf 1
- redistribute eigrp 1 subnets
- __________________________________________________________
- Redistribution eigrp to ospf
- ----------------------------------------------------------
- show interface serial0/0/0(showing bw)
- redistribute ospf 1 metric 1500 200 255 1 1500
- __________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement