Sunday, February 19, 2012

ACCESS CONTROL LIST-R2




Router>
Router>
Router>en
Router#
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f 0/0 ?
  <cr>
Router(config)#int f 0/0
Router(config-if)#
Router(config-if)#ip add 30.0.0.1 255.255.255.0 ?
  <cr>
Router(config-if)#ip add 30.0.0.1 255.255.255.0
Router(config-if)#
Router(config-if)#no shuit
                        ^
% Invalid input detected at '^' marker.
           
Router(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#ex
Router(config)#int s 1/0 ?
  multipoint      Treat as a multipoint link
  point-to-point  Treat as a point-to-point link
  <cr>
Router(config)#int s 1/0
Router(config-if)#ip add 20.0.0.2 255.255.255.252 ?
  <cr>
Router(config-if)#ip add 20.0.0.2 255.255.255.252
Router(config-if)#
Router(config-if)#clock rate 64000 ?
  <cr>
Router(config-if)#clock rate 64000
Router(config-if)#no shut ?
  <cr>
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface Serial1/0, changed state to up
e
% Ambiguous command: "e"
Router(config-if)#
Router(config-if)#ex
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

Router(config)#
Router(config)#
Router(config)#router rip ?
  <cr>
Router(config)#router rip
Router(config-router)#network 20.0.0.0
Router(config-router)#network 30.0.0.0
Router(config-router)#ex
Router(config)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#sh ip route ?
  WORD       Network to display information about or hostname
  bgp        Border Gateway Protocol (BGP)
  connected  Connected
  eigrp      Enhanced Interior Routing Protocol (EIGRP)
  ospf       Open Shortest Path First (OSPF)
  rip        Routing Information Protocol (RIP)
  static     Static routes
  <cr>
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    10.0.0.0/8 [120/1] via 20.0.0.1, 00:00:08, Serial1/0
     20.0.0.0/30 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Serial1/0
     30.0.0.0/24 is subnetted, 1 subnets
C       30.0.0.0 is directly connected, FastEthernet0/0
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#acc
Router(config)#access-list 111 deny icmp ho 30.0.0.2 ho 10.0.0.4 echo ?
  <cr>
Router(config)#access-list 111 deny icmp ho 30.0.0.2 ho 10.0.0.4 echo
Router(config)#access-list 111 deny tcp ho 30.0.0.3 ho 10.0.0.4 eq 80 ?
  dscp         Match packets with given dscp value
  established  established
  precedence   Match packets with given precedence value
  <cr>
Router(config)#access-list 111 deny tcp ho 30.0.0.3 ho 10.0.0.4 eq 80
Router(config)#acc
Router(config)#access-list 111 permit ip any any ?
  dscp        Match packets with given dscp value
  precedence  Match packets with given precedence value
  <cr>
Router(config)#access-list 111 permit ip any any
Router(config)#int f 0/0 ?
  <cr>
Router(config)#int f 0/0
Router(config-if)#ip acc
Router(config-if)#ip access-group 111 in ?
  <cr>
Router(config-if)#ip access-group 111 in
Router(config-if)#ex
Router(config)#

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.