1、通过show mac-table看下这台想要固定ip的电脑插在交换机的哪个端口上
2、知道了这个端口了,进入到这个端口模式下
输入
switchport port-security mac-address
xxxx.xxxx.xxxx  ip-address x.x.x.x
保存退出
3、在RSR20路由器上
输入
ip dhcp excluded-address x.x.x.x
(x.x.x.x就是步骤2里的绑定的那个ip)
退出保存
1、在接入交换机上通过show mac-table看下这台想要固定ip的电脑插在交换机的哪个端口上
(首先你要知道这个电脑的mac地址是多少)
2、知道了这个端口了,进入到这个端口模式下
输入
switchport port-security mac-address
xxxx.xxxx.xxxx  ip-address x.x.x.x
保存退出
(提醒:要记住这台电脑是插在交换机的哪个端口下,以后如果机房理线的时候,要记住把线还插回这个端口,否则这台pc无法通讯)
3、在RSR20路由器上
输入
ip dhcp excluded-address x.x.x.x
(x.x.x.x就是步骤2里的绑定的那个ip)
退出保存