Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > policy route-map question

Reply
Thread Tools

policy route-map question

 
 
jan.rockstedt@gmail.com
Guest
Posts: n/a
 
      01-11-2007
Hi all,

I wan't to block tcp port 2967 in on interface FastEthernet0/7
How shall i do?

Regards Jan Rockstedt

interface FastEthernet0/7
description 100
switchport access vlan 21
switchport mode access
no ip address
speed 100
spanning-tree portfast
spanning-tree bpdufilter enable

interface Vlan21
description 100
ip address 10.220.21.254 255.255.255.0 secondary
ip address 10.21.2.254 255.255.255.0 secondary
ip address 10.220.21.2 255.255.255.0
ip policy route-map SONG

route-map SONG permit 10
match ip address 100
set ip next-hop 172.20.254.2

access-list 100 deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
access-list 100 deny ip 10.0.0.0 0.255.255.255 192.168.0.0
0.0.255.255
access-list 100 permit ip any any

 
Reply With Quote
 
 
 
 
Brian V
Guest
Posts: n/a
 
      01-11-2007

<> wrote in message
news: oups.com...
> Hi all,
>
> I wan't to block tcp port 2967 in on interface FastEthernet0/7
> How shall i do?
>
> Regards Jan Rockstedt
>
> interface FastEthernet0/7
> description 100
> switchport access vlan 21
> switchport mode access
> no ip address
> speed 100
> spanning-tree portfast
> spanning-tree bpdufilter enable
>
> interface Vlan21
> description 100
> ip address 10.220.21.254 255.255.255.0 secondary
> ip address 10.21.2.254 255.255.255.0 secondary
> ip address 10.220.21.2 255.255.255.0
> ip policy route-map SONG
>
> route-map SONG permit 10
> match ip address 100
> set ip next-hop 172.20.254.2
>
> access-list 100 deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
> access-list 100 deny ip 10.0.0.0 0.255.255.255 192.168.0.0
> 0.0.255.255
> access-list 100 permit ip any any
>


you cannot block it inbound on f0/7, it is configured as a switchport and
you cannot apply an IP ACL to it, well....you can, but it won't do anything.
You could block it on the vlan interface.

access-list 101 deny tcp any any eq 2967
access-list 101 permit ip any any
int v21
ip access-group 101 out


 
Reply With Quote
 
 
 
 
jan.rockstedt@gmail.com
Guest
Posts: n/a
 
      01-11-2007

Brian V skrev:

> <> wrote in message
> news: oups.com...
> > Hi all,
> >
> > I wan't to block tcp port 2967 in on interface FastEthernet0/7
> > How shall i do?
> >
> > Regards Jan Rockstedt
> >
> > interface FastEthernet0/7
> > description 100
> > switchport access vlan 21
> > switchport mode access
> > no ip address
> > speed 100
> > spanning-tree portfast
> > spanning-tree bpdufilter enable
> >
> > interface Vlan21
> > description 100
> > ip address 10.220.21.254 255.255.255.0 secondary
> > ip address 10.21.2.254 255.255.255.0 secondary
> > ip address 10.220.21.2 255.255.255.0
> > ip policy route-map SONG
> >
> > route-map SONG permit 10
> > match ip address 100
> > set ip next-hop 172.20.254.2
> >
> > access-list 100 deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
> > access-list 100 deny ip 10.0.0.0 0.255.255.255 192.168.0.0
> > 0.0.255.255
> > access-list 100 permit ip any any
> >

>
> you cannot block it inbound on f0/7, it is configured as a switchport and
> you cannot apply an IP ACL to it, well....you can, but it won't do anything.
> You could block it on the vlan interface.
>
> access-list 101 deny tcp any any eq 2967
> access-list 101 permit ip any any
> int v21
> ip access-group 101 out


Thanks,

I did try this on the vlan21 first:

access-list 122 deny tcp any any eq 2967
access-list 122 permit tcp any any

But was the deny wrong with only tcp?

//Jan

 
Reply With Quote
 
Brian V
Guest
Posts: n/a
 
      01-11-2007

<> wrote in message
news: oups.com...
>
> Brian V skrev:
>
>> <> wrote in message
>> news: oups.com...
>> > Hi all,
>> >
>> > I wan't to block tcp port 2967 in on interface FastEthernet0/7
>> > How shall i do?
>> >
>> > Regards Jan Rockstedt
>> >
>> > interface FastEthernet0/7
>> > description 100
>> > switchport access vlan 21
>> > switchport mode access
>> > no ip address
>> > speed 100
>> > spanning-tree portfast
>> > spanning-tree bpdufilter enable
>> >
>> > interface Vlan21
>> > description 100
>> > ip address 10.220.21.254 255.255.255.0 secondary
>> > ip address 10.21.2.254 255.255.255.0 secondary
>> > ip address 10.220.21.2 255.255.255.0
>> > ip policy route-map SONG
>> >
>> > route-map SONG permit 10
>> > match ip address 100
>> > set ip next-hop 172.20.254.2
>> >
>> > access-list 100 deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
>> > access-list 100 deny ip 10.0.0.0 0.255.255.255 192.168.0.0
>> > 0.0.255.255
>> > access-list 100 permit ip any any
>> >

>>
>> you cannot block it inbound on f0/7, it is configured as a switchport and
>> you cannot apply an IP ACL to it, well....you can, but it won't do
>> anything.
>> You could block it on the vlan interface.
>>
>> access-list 101 deny tcp any any eq 2967
>> access-list 101 permit ip any any
>> int v21
>> ip access-group 101 out

>
> Thanks,
>
> I did try this on the vlan21 first:
>
> access-list 122 deny tcp any any eq 2967
> access-list 122 permit tcp any any
>
> But was the deny wrong with only tcp?
>
> //Jan
>


all udp will be dropped as well as all icmp


 
Reply With Quote
 
headsetadapter.com
Guest
Posts: n/a
 
      01-12-2007
Usually last line in an access-list is "permit ip any any". If you permit
TCP only, you may (and will) block all "internal stuff" like multicast,
broadcast, UDP, etc.

Good luck,

Mike
------
Cisco IP Phone PC Headset Adapters
www.ciscoheadsetadapter.com


<> wrote in message
news: oups.com...
>
>I did try this on the vlan21 first:
>
>access-list 122 deny tcp any any eq 2967
>access-list 122 permit tcp any any
>
>But was the deny wrong with only tcp?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Policy map using policy map Geoffrey Sinclair Cisco 1 07-27-2009 09:31 AM
Default Domain Policy vs Default Domain Controller Policy Tyler Cobb MCSE 6 10-19-2005 09:36 PM
Default Domain Policy vs. Default Domain Controller Policy Tyler Cobb MCSA 1 10-09-2005 03:42 PM
PIX question Policy NAT - quite urgent - AM Cisco 4 03-15-2005 08:42 AM
Re: QoS Policy Question & Recommendations Ben Cisco 1 11-18-2004 04:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57