Networking Configuration Package: Ip Mapping
Networking Configuration Package: Ip Mapping
CONFIGURATION PACKAGE
IP MAPPING
R1(config)#ip host HR 1.1.1.1
(HR name will be assign to IP address)
ACL
Standard
R1(config)#access-list 2 permit /deny 200.100.50.0
Extended
R1(config)#access-list 2 deny/permit tcp 200.100.50.5 0.0.0.0
200.100.100.100 0.0.0.0 eq telnet /port num
STATIC NAT
Static
R1(config)#ip nat inside source static 192.168.1.1 1.1.1.2
APPLY
R1(config)#int fa0/0
R1(config)#ip nat inside
R1(config)#exit
DYNAMIC NAT
Make access list first then configure NAT
PAT
It is very similar to dynamic NAT the difference is that :in configuring dynamic nat
we type OVERLOAD in eq 1 shown above.
Applying method remain same as dynamic nat..
TRUNK FORMATION
SW(CONFIG)#INT FA0/1
SW(CONFIG)#SWITCHPORT TRUNK ENCAPSULATION DOT1Q/ISL/NEGOTIABLE
SW(CONFIG)#SWITCHPORT MODE ACCESS/TRUNK
STATIC TRUNK
SW(CONFIG)#INT FA0/1
SW(CONFIG)#SWITCHPORT TRUNK ENCAPSULATION DOT1Q
SW(CONFIG)#SWITCHPORT MODE TRUNK
SW(CONFIG)#SWITCHPORT NONEGOTIATE( TO DISABLE DTP)
To reverse the static trunk the command is
SW(CONFIG)#no switchport nonegotiate
VTP PRUNNING
SW(CONFIG)#int fa0/1
SW(CONFIG)#switchport trunk prunning vlan 10,20
To add more vlan in existing
SW(CONFIG)#switchport trunk prunning vlan add/delete
PRIVATE VLAN
SW(CONFIG)#vtp mode transparent
SW(CONFIG)#vlan 100
SW(CONFIG)#private- vlan primary
SW(CONFIG)#ex
SW(CONFIG)#vlan 101
SW(CONFIG)#private- vlan community
SW(CONFIG)#ex
SW(CONFIG)#vlan 102
PVST
SENDER SIDE
SW(CONFIG)#int fa0/1
SW(CONFIG)#spanning tree vlan 10,20 port id/port priority
RECEIVER SIDE
SW(CONFIG)#int fa0/1
SW(CONFIG)#spanning tree vlan 10,20 cost ?
STP STABILITY
STP PORT FAST
1. BPDU GUARD
2. BPDU FILTER
(they are used for access ports )
SW(CONFIG)#int fa0/1
SW(CONFIG)#spanning tree portfast
SW(CONFIG)#spanning tree bpduguard enable
(to disable manulally error disable state)
SW(CONFIG)#shutdown
SW(CONFIG)#no shutdown
(using timer)
SW(CONFIG)#errdisable rec cause bpduguard
BPDU FILTER
SW(CONFIG)#int fa0/12
SW(CONFIG)#spanning tree bpdufilter enable
SW(CONFIG)#exit
ROOT GUARD
(IT IS USED FOR THE SAFETY OF ROOT BRIDGE APPLY ON TRUNK LINK)
SW(CONFIG)#int fa0/2
SW(CONFIG)#spanning tree root quard
SW(CONFIG)#ex
SW(CONFIG)#spanning-tree uplinkfast
SW(CONFIG)#spanning-tree backbone fast
R1(config)#standby 1 preempt
R1(config)#int fa0/1
R1(config)#standby 1 track serial 2/0 60
R1(config)#ex
2.PER INTERFACE
1.per ip address
R1(config)#router ospf 1
R1(config)#net 22.22.22.22 0.0.0.0 area 0
2.direct configuration on interface
R1(config)#int s2/0
R1(config)#ip ospf 1 area 0
R1(config)#int fa0/0
R1(config)#vrrp 1 priority ?
R1(config)#vrrp 1 ip (ip address)
R1(config)#end
VRRP TRACKING
In it we have object tracking implement like ACL.while in HSRP there is interface
and object tracking.for tracking, election is done on priority not by virtual ip
address criteria
R1(config)#track 1 interface s2/0 ip routing
Or
R1(config)#track 1 interface s2/0 line-protocol
R1(config)#end
R1(config)#vrrp 1 track 1 ?
R1(config)#vrrp 1 track 1 dec 100 (example)
R1(config)#end
R1(config)#int fa0/0
R1(config)#glbp 1 weighting track 1 dec 20
R1(config)#glbp 1 weighting 110 lower 95 upper 105 (example)
GLBP AUTHENTICATION
R1(config)#int fa0/0
R1(config)#glbp 1 authentication ?
R1(config)#end
REDISTRIBUTION (EXTERNAL ROUTES TO OSPF)
R1(config)#router ospf 1
R1(config)#redistribution static subnets metric-type 1 (configure metric type E2
or E1)
R1(config)#redistributre static subnets metric-type 1 metric (num)
(configure seed metric )
ALLOWED VLAN CONCEPT
R1(config)#int fa0/1-2
R1(config)#switchport trunk allowed vlan 1,10,20
R1(config)# switchport trunk allowed add vlan ?
vlans shown in above command)
1.ROUTE MAP
SECURITY
MAC FLOODING ATTACK
SW(CONFIG)#int fa 0/5
SW(CONFIG)#switchport mode access (mode should be access )
SW(CONFIG)#switchport port-security max ?
SW(CONFIG)#switchport port-security mac address ?
Sticky or static
SW(CONFIG)#switchport port-security violation ?
VOICE VLANS
SW(CONFIG)#vlan 10,20
SW(CONFIG)#vlan 10
SW(CONFIG)#name voice
SW(CONFIG)#vlan 20
SW(CONFIG)#name data
SW(CONFIG)#end
SW(CONFIG)#int range fa0/1-4
SW(CONFIG)#switchport host
SW(CONFIG)#switchport access vlan 20
SW(CONFIG)#switchport voice vlan 10
SW(CONFIG)#end
SW(CONFIG)#ex
SW(CONFIG)#vlan filter UMER vlan-list 30,40
(DR)
(BDR)
SW(CONFIG)#end
SW(CONFIG)#do debug ip ospf adj
SW(CONFIG)#router ospf 1
SW(CONFIG)#area 1 nssa
SW(CONFIG)#area 1 nssa default ( creation of default route for NSSA)
TOTALLY NSSA
SW(CONFIG)#router ospf 1
SW(CONFIG)#area 1 nssa no-summary
SW(CONFIG)#end
(example)
FOR LSA-3
SW(CONFIG)#router ospf 1
SW(CONFIG)#area 0 range 172.16.0.0 255.255.0.0
SW(CONFIG)#do sh ip rou sum
IP PREFIX LIST
(example)
(-le=less than
(permit any
APPLY PREFIX-LIST
R1(config)#router ospf 1
R1(config)#distribute-list prefix-list UMER in
R1(config)#end
R1(config)#clear ip route * (rerfresh the routing table)
Configure b/w two routers ,one of the routers is ABR,m there should
be common regular area b/w two routersby default virtual link is
present in area 0..configuration is dependant on router id..it connect
the regular area to backbone area
R1(config)#router ospf 1
R1(config)#area 1 virtual-link 22.22.22.22
desitnation)
EIGRP ROUTE-SUMMARIZATION
RIP AND EIGRP HAVE ROUTE SUMMARIZATION IMPLEMETENT ON
INTERFACE BASIS WHILE OSPF HAVE ROUTE SUMMARIZATION DONE IN
OSPF PROCESS
R1(config)#int s2/0
R1(config)#ip sum-add eigrp 100 192.168.16.0 255.255.255.0 (e.g)
AUTHENTICATION TECHNIQUES(RIP,EIGRP,OSPF)
1.OSPF
R1(config)#INT S2/0
R1(config)#IP OSPF AUTHENTICATION MESSAGE-DIGEST
R1(config)#IP OSPF MESSAGE-DIGEST-KEY 1 MD5 CISCO
R1(config)#END
2.RIP/EIGRP
(bgp database)
remote-as 200
BGP ATTRIBUTES
1.WEIGHT
It has impact on that router on which it is configured..
R1(config)#ROUTER BGP 200
ex
R1(config)#neighbour
5.9.0.3 remote-as 20
R1(config)#
5.9.0.5
5.9.0.4
R1(config)#
5.9.0.5
5.9.0.4
5.9.0.5
R1(config)#ex
(same on other RR if present)
Similarly for RR clients configurations are as follows
R1(config)#neighbour bgp 20
R1(config)#neighbour 5.9.0.2 remote 20
R1(config)#neighbour 5.9.0.2 up loop 0
R1(config)#neighbour 5.9.0.3 remote 20
R1(config)#neighbour 5.9.0.3 up loop 0
Similar configuration on others RR clients..
For RR the command of next-hop-self is given..
END
(prepared by M.UMER TAHIR)