Sunday, February 19, 2012

ACCESS CONTROL LIST-R1



         --- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: n


Press RETURN to get started!



Router>en
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0 ?
  <cr>
Router(config)#int f0/0
Router(config-if)#ip add 10.0.0.1 255.255.255.0 ?
  <cr>
Router(config-if)#ip add 10.0.0.1 255.255.255.0
Router(config-if)#
Router(config-if)#no shut ?
  <cr>
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)#
Router(config-if)#exit
Router(config)#
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.1 255.255.255.252 ?
  <cr>
Router(config-if)#ip add 20.0.0.1 255.255.255.252
Router(config-if)#no shut ?
  <cr>
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial1/0, changed state to down
Router(config-if)#exi
Router(config)#
%LINK-5-CHANGED: Interface Serial1/0, changed state to up

%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 10.0.0.0 ?
  <cr>
Router(config-router)#network 10.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#ex
Router(config)#
Router(config)#
Router(config)#
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

     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/0
     20.0.0.0/30 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Serial1/0
R    30.0.0.0/8 [120/1] via 20.0.0.2, 00:00:07, Serial1/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 10.0.0.2 ho 30.0.0.4 echo ?
  <cr>
Router(config)#access-list 111 deny icmp ho 10.0.0.2 ho 30.0.0.4 echo
Router(config)#access-list 111 deny tcp ho 10.0.0.3 ho 30.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 10.0.0.3 ho 30.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)#exit
Router(config)#

No comments:

Post a Comment

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