在安裝過程中於綁定介面上建立虛擬區域網路
建立 VLAN
在安裝 CubeCOS 期間建立一個虛擬區域網路 (VLAN)。
設定網路綁定,警告:請勿使用 bond0、bond1、bondx 作為綁定名稱
-- Network Bonding Settings --
--------------------------------------------------
Label BusID Driver State Speed
--------------------------------------------------
IF.1 0000:02:00.0 bnx2 UP 1000F
IF.2 0000:02:00.1 bnx2 DOWN N/A
IF.3 0000:03:00.0 bnx2 DOWN N/A
IF.4 0000:03:00.1 bnx2 DOWN N/A
--------------------------------------------------
1: Display policy
2: Configure network bonding
x: Exit
p: Previous screen
n: Next screen
Select option: 2
- Configure Network Bonding -
Select action:
1: Create
2: Remove
3: Update
Enter index: 1
Enter bonding interface name (required) [3-16 chars]: data0
'data0' interface binds: <none>
1: IF.1
2: IF.2
3: IF.3
4: IF.4
5: Clear
6: Save
Enter index: 2
'data0' interface binds: IF.2
1: IF.1
2: IF.2
3: IF.3
4: IF.4
5: Clear
6: Save
Enter index: 3
'data0' interface binds: IF.2 IF.3
1: IF.1
2: IF.2
3: IF.3
4: IF.4
5: Clear
6: Save
Enter index: 6
binding interfaces IF.2 IF.3 to data0
Press enter to continue:
設定 VLAN
-- VLAN Settings --
--------------------------------------------------
Label BusID Driver State Speed
--------------------------------------------------
IF.1 0000:02:00.0 bnx2 UP 1000F
IF.2 0000:02:00.1 bnx2 DOWN N/A
IF.3 0000:03:00.0 bnx2 DOWN N/A
IF.4 0000:03:00.1 bnx2 DOWN N/A
--------------------------------------------------
1: Display policy
2: Configure vlan network
x: Exit
p: Previous screen
n: Next screen
Select option: 2
- Configure VLAN Network -
Select action:
1: Create
2: Remove
Enter index: 1
Select an interface:
1: IF.1
2: IF.4
3: data0
Enter index: 3
Enter vlan ID [1-4094]: 100
Set vlan 100 for interface 'data0'
在網路介面 IF.100 上配置IP位址(含VLAN標籤)
將此介面設為預設介面?
是表示外部連線具備網際網路存取權限(閘道器/路由器)- 內部連接(無閘道器/路由器)為「否」
-- Networking Settings --
--------------------------------------------------
Label BusID Driver State Speed
--------------------------------------------------
IF.1 0000:02:00.0 bnx2 UP 1000F
IF.2 0000:02:00.1 bnx2 DOWN N/A
IF.3 0000:03:00.0 bnx2 DOWN N/A
IF.4 0000:03:00.1 bnx2 DOWN N/A
--------------------------------------------------
1: Display device status
2: Display policy
3: Configure IF.1
4: Configure IF.4
5: Configure data0
6: Configure data0.100
x: Exit
p: Previous screen
n: Next screen
Select option: 6
- Configure data0.100 -
Enable this interface?
1: Yes
2: No
Enter index: 1
Make this interface the default interface?
1: Yes
2: No
Enter index: 2
Enter the IPv4 address: 192.168.100.10
Enter the IPv4 subnet mask: 255.255.255.0
總結
Summary
Password has not been modified.
Host name: hp1
data0:
IF.2
IF.3
data0.100: vlan 100 on data0
IF.1
Default interface.
IPv4 Mode: Manual
IPv4 Address: 192.168.1.101
IPv4 Netmask: 255.255.255.0
IPv4 Gateway: 192.168.1.254
IPv6 Mode: Automatic
IF.4
Interface disabled
data0
IPv4 Mode: Manual
IPv4 Address:
IPv4 Netmask:
IPv6 Mode: Disabled
data0.100
Master interface: data0
IPv4 Mode: Manual
IPv4 Address: 192.168.100.10
IPv4 Netmask: 255.255.255.0
IPv6 Mode: Automatic
DNS server 1: 1.1.1.1
Time Zone: Asia/Taipei
Date: 12/02/2020
Time: 13:54:19
Role: control-converged
External IP/Domain: N/A
Management: IF.1
Provider: IF.1
Overlay: data0.100
Storage: data0.100
Domain/Region: default/RegionOne
Cube Secret Seed: bigstack
Management CIDR: 10.254.0.0/16
High Availability: disabled
1: Accept the configuration
2: Cancel the configuration
3: Modify the configuration