路由器的配置

基本配置

en

conf t

no ip domain-lo

line console 0

logg sy

ho r1

int f0/0

ip add 192.168.1.1 255.255.255.0

no sh

int f0/1

ip add 10.1.1.1 255.255.255.0

no sh

exit    

动态路由配置

router rip 

vversion 2

network 10.1.1.0  255.255.255.0

network 192.168.1.0  255.255.255.0

exit

访问控制列表配置

access-list 1 deny host 192.168.1.2

access-list 1 permit any

int f0/0

ip access-group 1 in

no sh

exit