1

二层管理型交换机如何设置IP

 1 year ago
source link: https://blog.51cto.com/u_12310671/5514294
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

二层管理型交换机如何设置IP

原创
二层管理型交换机如何设置IP_show ip interface

IP配置命令有:

show ip interface brief

ip address

功能介绍

ip配置模块可添加修改或查看交换机的接口ip信息;

show ip interface

命令描述 

查看端口的ip配置,可show网络接口查看到ip信息,也可以show 对应vlan查看ip信息

参数  

缺省 

命令模式 

示例 

switch#show ip interfacebrief

switch#show interfacevlan 1

ip address

命令描述 

ip address  <address> <netmask>

如果希望修改交换机管理ip,可以通过此命令。

自动获取IP信息

<address>

Vlan端口的ip地址

<netmask>

缺省

VLAN 1端口

命令模式 

vlan接口模式

示例 

修改交换机管理IP

switch (config)# interface vlan1

switch (config-if-vlan)# ip address 192.168.1.1 255.255.255.0

switch# copy running-config startup-config

//修改IP后,保存配置

  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK