跳到主內容
版本:2.4

在安裝過程中建立虛擬區域網路

建立 VLAN

在安裝 CubeCOS 期間建立 VLAN 非常簡單。

設定 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.2
3: IF.3
4: IF.4
Enter index: 2
Enter vlan ID [1-4094]: 100
Set vlan 100 for interface 'IF.2'

在網路介面 IF.2.100 上配置IP位址(含VLAN標籤)

將此介面設為預設介面?

  • 表示外部連線具備網際網路存取權限(閘道器/路由器)

  • 內部連接(無閘道器/路由器)為「否」

    -- 網路設定 --


    標籤 匯流排ID 駕駛員狀態 速度


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.2
5: Configure IF.3
6: Configure IF.4
7: Configure IF.2.100
x: Exit
p: Previous screen
n: Next screen

Select option: 7

- Configure IF.2.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
IF.2.100: vlan 100 on IF.2
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.2
IPv4 Mode: Manual
IPv4 Address:
IPv4 Netmask:
IPv6 Mode: Disabled
IF.3
Interface disabled
IF.4
Interface disabled
IF.2.100
Master interface: IF.2
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: IF.2.100
Storage: IF.2.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