导航:首页 > 程序命令 > 华为交换机上解除绑定命令

华为交换机上解除绑定命令

发布时间:2023-06-14 05:24:09

A. 如何在华为的核心交换机上解除服务器IP与MAC地址的绑定,求大神指点

命令
am
user-bind
am
user-bind
interface
{
interface-name
|
interface-type
interface-num
}
{
mac-addr
mac
|
ip-addr
ip
}*
|
mac-addr
mac
interface
{
interface-name
|
interface-type
interface-num
}
|
ip-addr
ip
}*
|
ip-addr
ip
{
interface
{
interface-name
|
interface-type
interface-num
}
|
mac-addr
mac
}*
}
undo
am
user-bind
{
interface
{
interface-name
|
interface-type
interface-num
}
{
mac-addr
mac
|
ip-addr
ip
}*
|
mac-addr
mac
{
interface
{
interface-name
|
interface-type
interface-num
}
|
ip-addr
ip
}*
|
ip-addr
ip
{
interface
{
interface-name
|
interface-type
interface-num
}
|
mac-addr
mac
}*
}
【视图】
系统视图
【参数】
interface
{
interface-name
|
interface-type
interface-num
}:以太网端口。
mac-addr
mac:mac地址。
ip-addr
ip:ip地址。
【描述】
am
user-bind用来将端口、ip和mac地址绑定在一起。
系统支持port+ip、port+mac、port+ip+mac、ip+mac绑定方式:

port+ip绑定:将报文的接收端口和源ip地址绑定。指定端口将只允许指定ip地址的报文通过,不允许其它ip地址的报文通过,同时指定ip地址的报文只能从指定端口上通过,不能从其它端口上通过。

port+mac绑定:将报文的接收端口和源mac绑定。指定端口将只允许指定mac地址的报文通过,不允许其它mac地址的报文通过,同时指定mac地址的报文只能从指定端口上通过,不能从其它端口上通过。

port+ip+mac绑定:将报文的接收端口、源ip和源mac绑定。指定端口将只允许指定ip地址和指定mac地址的报文通过,不允许其它ip地址和mac地址的报文通过。指定ip地址的报文只能从指定端口上通过,不能从其它端口上通过。指定mac地址的报文只能从指定端口上通过,不能从其它端口上通过。

ip+mac绑定:将报文的源ip和源mac绑定。如果报文的源ip地址与指定ip相同,则只有源mac地址是指定的mac地址时,该报文才被交换机转发,否则该报文不能被转发。同理,如果报文的mac地址与指定的mac地址相同,则只有源ip地址与指定的ip地址相同,该报文才被交换机转发,否则该报文不能被转发。
注:不支持同时对一个端口做“port+ip+mac”和“port+ip”绑定。
假设ip地址10.1.1.2,mac地址0000-0000-0001
1、ip+mac+端口绑定流程
三层交换机中目前只有s3526系列支持使用am命令来进行ip地址和端口的绑定。并且如果s3526系列交换机要采用am命令来实现绑定功能,则交换机必须是做三层转发(即用户的网关应该在该交换机上)。
2、采用dhcp-security来实现
1.配置端口的静态mac地址
[switcha]mac-address
static
0000-0000-0001
interface
e0/1
vlan
1
2.配置ip和mac对应表
[switcha]dhcp-security
10.1.1.2
0000-0000-0001
static
3.配置dhcp-server组号(否则不允许执行下一步,此dhcp-server组不用在交换机上创建也可)
[switcha-vlan-interface1]dhcp-server
1
4.
使能三层地址检测
[switcha-vlan-interface1]address-check
enable
3、采用am命令来实现
1.使能am功能
[switcha]am
enable
2.进入端口视图
[switcha]vlan
10
3.
将e0/1加入到vlan10
[switcha-vlan10]port
ethernet
0/1
4.创建(进入)vlan10的虚接口
[switcha]interface
vlan-interface
10
5.给vlan10的虚接口配置ip地址
[switcha-vlan-interface10]ip
add
10.1.1.1
255.255.255.0
6.进入e0/1端口
[switcha]interface
ethernet
0/1
7.
该端口只允许起始ip地址为10.1.1.2的10个ip地址上网
[switcha-ethernet0/1]am
ip-pool
10.1.1.2
10

阅读全文

与华为交换机上解除绑定命令相关的资料

热点内容
wps怎么把pdf转jpg 浏览:217
自拍用什么app做的艺术照 浏览:169
h3c无线配置命令 浏览:515
linux代码阅读工具 浏览:160
能够画出对称图形的是什么app 浏览:424
单片机投票器 浏览:467
程序员那么可爱唱吗 浏览:830
手机误删的app怎么恢复 浏览:700
java第三方加密库 浏览:660
编译代码软件哪个好 浏览:997
编译器软件图片 浏览:880
美团专送app怎么不接受远单 浏览:833
服务器mgmt口如何连接电脑 浏览:798
做程序员至少要精通几种 浏览:673
个人用云服务器价格对比 浏览:257
如何远程删除服务器文件夹 浏览:779
a9账号如何移植到安卓 浏览:340
gpib接口编程 浏览:468
索尼recovery编译 浏览:878
app后端php 浏览:625