思科三层交机配成路由器的命令

来源:百度知道 编辑:UC知道 时间:2024/09/22 07:51:14
就是把三层交换机当成路由器使用

Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip routing #启用路由
Router(config)#int f1/0 #进入你需要配置成三层接口的接口模式
Router(config-if)#no switchport #转换为三层接口
*Mar 1 00:01:23.651: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down
Router(config-if)#exit #退出接口模式
Router(config)#

router(config)#ip routing
router(config-if)#no switchport

看你需要什么功能了,如果仅需要vlan间的互通,就只需要ip routing 如果端口路由功能则需要进入端口,然后设置为no switchport