Router1#configure terminal
Router1(config)#access-list 12 deny any
Router1(config)#router rip
Router1(config-router)#passive-interface FastEthernet0/1
Router1(config-router)#distribute-list 12 in FastEthernet0/1
Router1(config-router)#end
Router1#
注释 passive-interface 用于防止端口发送路由 信息,但是并不能控制此接口 不接收路由 信息,所以要再使用distribute-list 命令来防止此接口接收路由信息