ضبط الاعدادات الاساسية مع Telnet and SSH
ضبط الاعدادات الاساسية مع Telnet and SSH
ضبط الاعدادات الاساسية مع Telnet and SSH
Router> Enable
Router# terminal history size 30
لتخزين عدد اﻷوامر
Router# show history
Router>enable
Router# configure terminal
Router# hostname ………. CCNA
Router(config)# line console 0
Router(config-line)# Password cisco1234
Router(config)#enable password 111*
Router(config)#enabe secret 111*
Router(config-line)# login
Router#exit
Router# copy ruinng–config startup-config
Router #wr
Router(config)# enable password 12345*
: لتشفير مستوى اﻻعدادات
Router(config)# enable secret 12345*
Router>
Router# show running-config : لعرض ملف اﻻعدادات
Router# show ip interface brief
Server Configuration
IP Address 192.168.1.1
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC1- Configuration
IP Address 192.168.1.2
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC2- Configuration
IP Address 192.168.1.3
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC> ping 192.168.1.1
VLAN
Switch > enable
Switch# configure terminal
Switch(config)# vlan 1
Switch(config-vlan)# name Business
Switch(config-vlan)# exit
Switch(config)# vlan 2
Switch(config-vlan)# name IT
Switch(config-vlan)# exit
Switch(config)# vlan 3
Switch(config-vlan)# name Management
Switch(config-vlan)# exit
Switch(config)# interface fastethernet 0/1
Switch(config-if)# switchport access vlan 1
Switch(config-if)# exit
Switch(config)# interface fastethernet 0/8
Switch(config-if)# switchport access vlan 2
Switch(config-if)# exit
Switch(config)# interface fastethernet 0/14
Switch(config-if)# switchport access vlan 3
Switch(config)# exit
Switch# copy runing-config startup-config
Switch>enable
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name HR
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1-8
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name IT
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/9-16
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#vlan 30
Switch(config-vlan)#name Finance
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/17- 24
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#exit
Switch(config)#interface gigabitEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#exit
Switch#
Switch#show vlan
Switch#show interfaces trunk
Switch>enable
Switch# configure terminal
Switch(config)#interface vlan 10
Switch(config-if)#ip add 192.168.10.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
Switch(config)#ip dhcp pool MY_LAN
Switch(dhcp-config)#network 192.168.10.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.10.1
Switch(dhcp-config)#dns-server 192.168.10.10
Switch(config)#interface vlan 20
Switch(config-if)#ip add 192.168.20.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
Switch(config)#ip dhcp pool MY_LAN
Switch(dhcp-config)#network 192.168.20.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.20.1
Switch(dhcp-config)#dns-server 192.168.20.10
Switch(config)#interface vlan 30
Switch(config-if)#ip add 192.168.30.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
Switch(config)#ip dhcp pool MY_LAN
Switch(dhcp-config)#network 192.168.30.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.30.1
Switch(dhcp-config)#dns-server 192.168.30.10
Switch(dhcp-config)#exit
Switch(config)#exit
Switch#