Cisco Configuration switch Management address and default gateway

Source: Internet
Author: User

Configure the switch remote management address and default gateway

The topology diagram is as follows:

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/29/1b8f7b6af37801733cf03704e748d09a.png-wh_500x0-wm_3 -wmp_4-s_475699717.png "title=" 57.png "alt=" 1b8f7b6af37801733cf03704e748d09a.png-wh_ "/>

1, Configuration PC0

650) this.width=650; "Src=" Https://s4.51cto.com/oss/201710/29/1040970991a285f60d06835e1725ca41.png-wh_500x0-wm_3 -wmp_4-s_2639041296.png "title=" 58.png "alt=" 1040970991a285f60d06835e1725ca41.png-wh_ "/>


2. Configuring the SW1 Switch

Switch (config) #no IP domain-lookup #关闭域名解析

Switch (config-line) #exec-timeout 0 0 #与交换机保持连接的时延, where the settings are always connected to the router, unless you logout

Switch (config-line) #logging syn #设置模式同步

Switch (config) #hostname SW1 #修改交换机的名称为SW1

SW1 (config) #line vty 0 4# into the virtual terminal

SW1 (config-line) #password ccna5188$ #设置telnet密码为ccna5188 $

SW1 (config-line) #login #敲该命令登陆下

SW1 (config) #enable secret [email protected] #设置特权模式的登陆密码 (ciphertext)

SW1 (config) #username ccna password ccna5188$ #设置本地用户ccna with a password of ccna5188$

SW1 (config) #line vty 0 4 #进入虚拟终端

SW1 (config-line) #login local #设置本地用户的telnet登陆

SW1 (config) #ip default-gateway 192.168.1.254 #设置该交换机的默认网关

SW1 (config) #int vlan1 #进入vlan1的端口

SW1 (config-if) #ip address 192.168.1.1 255.255.255.0 #配置交换机的管理地址为192.168.1.1 Subnet Mask is 255.255.255.0

SW1 (config-if) #no shutdown #启动这个vlan1


3. Configuring the R1 Router

Router (config) #hostname R1

R1 (config) #no IP domain-lo

R1 (config-line) #exec-timeout 0 0

R1 (config-line) #logging syn

R1 (config) #int fa0/0 #进入fa0/0 ports

R1 (config-if) #ip address 192.168.1.254 255.255.255.0 #配置fa0/0 with IPD addresses of 192.168.1.254, Subnet mask = 255.255.255.0

R1 (config-if) #no shutdown #打开端口

R1 (config-if) #no shutdown #进入fa0/1 ports

R1 (config-if) #ip address 192.168.2.254 255.255.255.0 #配置fa0/1 with IPD addresses of 192.168.2.254, Subnet mask = 255.255.255.0

R1 (config-if) #no shutdown #打开端口


4, Configuration PC1

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201710/29/eef471ae6501b9a02c183e9077111b9f.png-wh_500x0-wm_3 -wmp_4-s_3256371882.png "title=" 59.png "alt=" Eef471ae6501b9a02c183e9077111b9f.png-wh_ "/>


5. View the status of the port on the router

R1#show IP int Brief

Interface ip-address OK? Method Status Protocol


fastethernet0/0 192.168.1.254 YES Manual up


FASTETHERNET0/1 192.168.2.254 YES Manual up


Vlan1 Unassigned YES unset administratively down


6, Test PC1 remote management SW1

650) this.width=650; "Src=" Https://s3.51cto.com/oss/201710/29/616eb0bda4a792731db2eb5ed8244f11.png-wh_500x0-wm_3 -wmp_4-s_1602804879.png "title=" 60.png "alt=" 616eb0bda4a792731db2eb5ed8244f11.png-wh_ "/>



This article is from the Server Ops blog, so be sure to keep this source http://shamereedwine.blog.51cto.com/5476890/1977267

Cisco Configuration switch Management address and default gateway

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.