即使已经创建了 VLAN 接口(应始终在配置绑定之前创建 VLAN),也要在 DNS/DHCP 服务器 上启用端口绑定。
BlueCat 建议任何需要在端口绑定之上进行 VLAN 标记的客户在配置 VLAN 接口之前配置绑定。但是,如果在配置绑定接口之前创建了 VLAN,请执行以下流程以启用与 VLAN 的端口绑定。
要启用已有 VLAN 接口的端口绑定:
- 禁用 Address Manager 用户界面中的 DNS/DHCP 服务器(服务器选项卡 > 服务器名称 > 禁用)。
-
从 DNS/DHCP 服务器管理控制台 中,从 Address Manager 控制中移除服务器。
Adonis> configure system Adonis:configure:system> set state no-proteus-control
-
从 DNS/DHCP 服务器管理控制台,在 eth0 上设置临时主服务 IP 地址(将在此流程的后面设置正确的主服务 IP)。如果已在 eth0 上配置主服务 IP,请转至步骤 4。
Adonis> configure interfaces Adonis:configure:interfaces> modify eth0 Adonis:configure:interface:eth0> set primary <ipv4|ipv6address/CIDR> Adonis:configure:interface:eth0> save
注: 临时主服务 IP 不应与要在生产环境中使用的 IP 地址为相同的 IP 地址或处于同一子网。有关更多信息,请参阅设置主服务 IP 地址。 -
从 DNS/DHCP 服务器管理控制台 中移除所有 VLAN 接口。对服务器上的所有 VLAN 接口重复此操作。
Adonis> configure interfaces Adonis:configure:interfaces> remove <vlan-interface> Please confirm the removal of requested interface(Y/y or N/n)?y Removed interface successfully
-
从管理控制台启用绑定。
Adonis> configure interfaces Adonis:configure:interfaces> add bonding-interface Adonis:configure:interfaces:bond0> set bond-mode active-backup Adonis:configure:interfaces:bond0> save This operation will disconnect SSH connections
-
重新添加先前使用主服务 IP 地址配置的 VLAN 接口。将其父接口设置为 bond0,并为其分配 IP 地址以设置为主服务 IP。IP 地址不能与在步骤 3 中设置为主服务 IP 的临时 IP 地址相同,也不能在同一子网上。
Adonis> configure interfaces Adonis:configure:interfaces> add vlan-interface vlan-id <1> parent bond0 Adonis:configure:interface:eth0.1> add address <ipv4|ipv6address/CIDR> Adonis:configure:interface:eth0.1> set primary <ipv4|ipv6address> Adonis:configure:interface:eth0.1> save
- 从 Address Manager 用户界面,更换服务器以在 Address Manager 控制下取回 DNS/DHCP 服务器(服务器选项卡 > 服务器名称 > 更换)。
- 从 Address Manager 用户界面重新创建 VLAN 接口(服务器选项卡 > 服务配置 > 接口)。
-
移除在步骤 3 中配置的 eth0 上的临时 IP 地址。
Adonis> configure interfaces Adonis:configure:interfaces> modify eth0 Adonis:configure:interface:eth0.1> remove <ipv4|ipv6address/CIDR> Adonis:configure:interface:eth0.1> save