beautypg.com

Chapter 5 - command line interface – Asus GigaX2124 User Manual

Page 90

background image

78

Chapter 5 - Command Line Interface

5.3.5.2 Create a vlan entry

Use the vlan vid command to create vlan entry on the switch. Use the

name string command to create vlan entry with string on the switch.

CLI Syntax: vlan ID
Example: (config)# vlan 3
(config-vlan)# name vlan3

5.3.5.3 interface vlan VLAN-ID

This command changes the operation to vlan interface command mode.

CLI Syntax: interface vlan VLAN-ID
Example: interface vlan 1

5.3.5.4 ip address

This command sets the ip address for indicated interface.

CLI Syntax: ip address A.B.C.D/M
Example: (config-if)# ip address 192.168.20.121/24

5.3.5.5 ip dhcp client

This command set system interface to get ip via dhcp server.

CLI Syntax: ip dhcp client
Example: (config-if)# ip dhcp client

The vlan1 is for system purpose, for example, for firmware upgrade,

management, and so on.

Note

It won’t show the interface name. Please keep in mind, which you are

configuring.

Note