Pages

Showing posts with label router. Show all posts
Showing posts with label router. Show all posts

7/12/2015

Packet Capture From Cisco Router


7K

ethanalyzer local interface inband limit-captured-frames 20000 autostop duration 120 write bootflash:capture.pcap

IOS-XE Router


monitor capture CAP int Gi0/0/1 both
monitor capture CAP match ipv4 any any
monitor capture CAP start
show monitor capture CAP buffer brief
monitor capture CAP stop
monitor capture CAP export ftp://10.1.10.27/CAP.pcap
no monitor capture CAP

IOS Router

  1. create access-list for packet filter
  2. access-list 1 permit 10.100.1.45
  3. create buffer
  4. monitor capture buffer holdpackets
  5. filter buffer
  6. monitor capture buffer holdpackets filter access-list 1
  7. create capture point
  8. monitor capture point ip cef mytrace all both
  9. associate capture point with buffer
  10. monitor capture point associate mytrace holdpackets
  11. start capture
  12. monitor capture point start mytrace
    • Look at progress
    show monitor capture buffer all parameters
    • See list of capture points
    show monitor capture point all
  13. Stop the capture
  14. monitor capture point stop mytrace
  15. Export buffer as PCAP
  16. monitor capture buffer holdpackets export tftp://10.1.10.27/mytrace.pcap
  17. Remove buffer
  18. no monitor capture buffer holdpackets
  19. Remove capture point
  20. no monitor capture point ip cef mytrace all both



5/15/2014

Redistribute selected static routes into OSPF

Cisco:  Redistribute Selected Static Routes into OSPF


ip access-list standard 10
10 permit 10.15.1.0 0.0.0.255
20 permit 10.15.10.0 0.0.0.255
30 permit 10.15.101.0 0.0.0.255
40 permit 10.15.201.0 0.0.0.255

route-map CLT-Routes permit 10
match ip address 10

router ospf 1
redistribute static subnets route-map CLT-Routes

2/25/2013

Configure NAT in the VRF lite scenario

Configure NAT in the VRF lite scenario
But, why would you do a VRF and then decide you wanted to route from that VRF to your global routing instance?  And why on earth would you want to NAT between two interfaces in different VRF's. 
Well, I did end up needing to and this article was very helpful.

ip vrf MyVRF
 exit

interface 
 (no switchport)           ! make routed port
 ip vrf forwarding MyVRF   ! associate interface with MyVRF
 ip address A.B.C.D M.M.M.M

interface 
 switchport
 switchport trunk encapsulation dot1q
 (switchport nonegotiate)
 switchport mode trunk

vlan 10
 name WAN-VLAN

interface Vlan10
 ip vrf forwarding MyVRF
 ip addr E.F.G.H M.M.M.M
 ip nat enable

! now the VRF-aware NAT config:
interface 
 ip nat enable

interface Vlan10
 ip nat enable

ip access-list standard LAN-to-NAT
 permit 

ip nat source list LAN-to-NAT interface Vlan10 vrf MyVRF overload

! finally the def. route
ip route vrf MyVRF 0.0.0.0 0.0.0.0 



3/27/2011

Cisco IOS

We used to have to pay more for the IP Advanced version of IOS to run OSPF on our branch office core routers.
Now I am told that we can run at least one instance of OSPF in IP Base license (cheaper) when running IOS ver 12.2.55se1