NETWORK笔记7:思科命令实验
实验名称:PC、交换机、路由通信
实验拓扑:
实验步骤:PC配置IP、交换机配置IP网关开启用户远程登录、路由器配置IP开启远程登录
实验总结:Ping正常,Telnet正常。 ip default-gateway 192.168.1.254
实验命令:
Switch>enable
Switch#configure terminal
Switch(config)# 5b4 hostname CiscoSwitch1
CiscoSwitch1(config)#no IP domain-lookup
CiscoSwitch1(config)#line console 0
CiscoSwitch1(config-line)#password 111111
CiscoSwitch1(config-line)#login
CiscoSwitch1(config-line)#exit
CiscoSwitch1(config)#line vty 0 4
CiscoSwitch1(config-line)#password 222222
CiscoSwitch1(config-line)#login
CiscoSwitch1(config-line)#exit
CiscoSwitch1(config)#enable password 333333
CiscoSwitch1(config)#interface vlan 1
CiscoSwitch1(config-if)#no shutdown
CiscoSwitch1(config-if)#ip address 192.168.1.10 255.255.255.0
CiscoSwitch1(config-if)#exit
CiscoSwitch1(config)#ip default-gateway 192.168.1.254
CiscoSwitch1(config)#exit
CiscoSwitch1#
CiscoSwitch1#show running-config
Building configuration...
Current configuration : 1186 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname CiscoSwitch1
!
enable password 333333
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
i 4458 nterface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.10 255.255.255.0
!
ip default-gateway 192.168.1.254
!
!
!
!
line con 0
password 111111
login
!
line vty 0 4
password 222222
login
line vty 5 15
login
!
!
!
end
CiscoSwitch1#write
CiscoSwitch1#config terminal
CiscoSwitch1(config)#service password-encryption
CiscoSwitch1(config)#exit
CiscoSwitch1#write
CiscoSwitch1#reload
Router>enable
Router#configure terminal
Router(config)#hostname CiscoRouter
CiscoRouter(config)#no ip domain-lookup
CiscoRouter(config)#enable password 111111
CiscoRouter(config)#line console 0
CiscoRouter(config-line)#password 222222
CiscoRouter(config-line)#login
CiscoRouter(config-line)#exit
CiscoRouter(config)#line vty 0 4
CiscoRouter(config-line)#password 333333
CiscoRouter(config-line)#login
CiscoRouter(config-line)#exit
CiscoRouter(config)#interface GigabitEthernet 0/1
CiscoRouter(config-if)#no shutdown
CiscoRouter(config-if)#ip address 192.168.1.254 255.255.255.0
CiscoRouter(config-if)#exit
CiscoRouter(config)#interface gigabitEthernet 0/2
CiscoRouter(config-if)#no shutdown
CiscoRouter(config-if)#ip address 192.168.2.254 255.255.255.0
CiscoRouter(config-if)#end
CiscoRouter#
CiscoRouter#show running-config
Building configuration...
Current configuration : 809 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname CiscoRouter
!
!
!
enable password 111111
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524MK72
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 192.168.2.254 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
password 222222
login
!
line aux 0
!
line vty 0 4
password 333333
login
!
!
!
end
CiscoRouter#configure terminal
CiscoRouter(config)#service password-encryption
CiscoRouter(config)#end
CiscoRouter#
CiscoRouter#write
CiscoRouter#reload
- 思科模拟器:通过对路由器的RIP设置network命令将连在两台路由器上的电脑连通
- 通哥运维笔记之思科、华为交换机的一些命令
- 【笔记】思科路由器常用配置命令
- 思科CCNA考试实验常用的命令
- 思科命令笔记
- 思科CCNA考试实验常用的命令总结
- iptables命令,实验笔记
- linux命令(6) zip/unzip及tar压缩与解压文件命令笔记
- 思科模拟器常用命令总结
- mysql学习笔记(6-DML命令)
- Git学习笔记(主要是对一些命令进行记录。。)
- OSPF中的Network命令
- 论文实验笔记之二:EViews6跑ARIMA
- 【linux学习笔记之一】linux系统目录结构以及常用系统命令
- Android 笔记: android.os.NetworkOnMainThreadException
- Linux操作系统学习笔记之linux基本命令
- WinDbg学习笔记十一 - 内核调试常用命令5 - 对象相关
- ubuntu学习笔记-命令
- 【笔记】iOS开发用到的一些终端的命令
- 实用笔记-EF中直接运行SQL命令