日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

思科3500系列交換機(jī)的基本配置命令

Catalyst 3524 switch IP 地址的配置

直接進(jìn)入默認(rèn)的VLAN 1中進(jìn)行配置命令如下:

interface VLAN1

ip address 172.16.1.3 255.255.0.0

即可 。

在Catalyst 中控制對(duì)Telnet的訪問(wèn)

luestudy_a(config)#Access-list 2 permit 172.16.0.0 0.0.255.255 (定義標(biāo)準(zhǔn)的訪問(wèn)列表)

luestudy_a(config)#line vty 0 15(進(jìn)入telnet端口,最多答應(yīng)16個(gè)telnet的會(huì)話)

luestudy_a(config-line)#access-class 2 in(應(yīng)用上述定義的訪問(wèn)列表,即只有172.16.0.0/16的網(wǎng)段可以實(shí)現(xiàn)對(duì)交換機(jī)的telnet會(huì)話

設(shè)置交換機(jī)的enable 密碼

luestudy_a(config)#enable passWord bluestudy

luestudy_a(config)#enable secret bluestudy

The enable secret you have chosen is the same as your enable password.

This is not recommended. Re-enter the enable secret.

注:對(duì)于如上的密碼,secret的優(yōu)先級(jí)更高,優(yōu)先起作用 。

設(shè)置console口密碼

luestudy_a(config)#line con 0

luestudy_a(config-line)#password bluestudy

luestudy_a(config-line)#

設(shè)置對(duì)telnet的密碼:

luestudy_a(config)#line vty 0 15

luestudy_a(config-line)#login

luestudy_a(config-line)#password bluestudy

luestudy_a(config-line)#

設(shè)置登陸用戶名和密碼:

luestudy_a(config)#username bluestudy password bluestudy

luestudy_a(config)#

luestudy_a#show running

Current configuration:

!

version 12.0

o service pad

ervice timestamps debug uptime

ervice timestamps log uptime

o service password-encryption

!

hostname bluestudy_a

!

enable secret 5 $1$b1mb$p6XgV/PY9WqvJy9MrHZFG/

enable password bluestudy

!

username bluestudy password 0 bluestudy

!

ip subnet-zero

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface VLAN1

ip address 172.16.1.3 255.255.0.0

o ip directed-broadcast

o ip route-cache

!

access-list 2 permit 172.16.0.0 0.0.255.255

!

line con 0

assword bluestudy

transport input none

topbits 1

line vty 0 4

access-class 2 in

assword bluestudy

login

line vty 5 15

access-class 2 in

assword bluestudy

login

!

end

luestudy_a#

    推薦閱讀