Start a Conversation

Unsolved

Y

1 Rookie

 • 

11 Posts

52

October 15th, 2024 12:10

N2048 vlan setting commands

I have two questions about the n2048 switch commands.


If I want to change a port that is already set as an access port for vlan10 to an access port for vlan50, is it correct that the vlan will be overwritten if I enter the command as shown below?

Also, do I need to enter switchport mode access again?

Currently

switchport access vlan 10


Enter the following command to change it

switchport access vlan 50


I would like to know if there is a command to change the terminal speed on the CLI.

1 Rookie

 • 

11 Posts

October 15th, 2024 17:45

n2048スイッチのコマンドについて、2点質問させていただきたいです。

既にvlan10のアクセスポートで設定されているポートをvlan50のアクセスポートに変更する場合、以下の通りコマンドを入れればvlanは上書きされる認識で間違い無いでしょうか。

また、switchport mode access を再度入れる必要がありますでしょうか?

現状
switchport access vlan 10

以下コマンドを入れて変更
switchport access vlan 50


CLI上でterminal speedを変更するコマンドがあれば
ご教示いただきたいです。
Note: This comment was created from a merged conversation originally titled N2048 vlan設定などのコマンドについて

Moderator

 • 

4.4K Posts

October 15th, 2024 18:42

Hello,

 

On question 1, you can directly put the whole line “switchport access vlan 50” , you do not have to do again “switchport mode access”, it is there by default and does not show. You can view the mode if you do “show interface status” in column M.

Here is example from the lab to change to access vlan 50:

 

console(config)#interface Gi1/0/2

console(config-if-Gi1/0/2)#switchport mode access

console(config-if-Gi1/0/2)#switchport access vlan 10

console(config-if-Gi1/0/2)#end

console#show running-config interface gi1/0/2

switchport access vlan 10

console#conf

console(config)#interface gi1/0/2

console(config-if-Gi1/0/2)#switchport access vlan 50

console(config-if-Gi1/0/2)#end

console#show running-config interface gi1/0/2

switchport access vlan 50

console#

 

On question 2, to change the terminal speed :

 

console(config)# line console 0

console(config-line)# speed <desired_speed, for example 115200>

 

No Events found!

Top