line
- Direct line
- Cross the line
- Line Configuration: console switch and router configuration
device
Switch
Management Switch
(https://blog.csdn.net/gengkui9897/article/details/85109962)
-
Mode (into the configuration from CLI)
User Mode Switch>
privileged mode Switch #
Global Mode Switch (config) #
Port Mode Switch (config-if) # -
Mode switching command
enable enter the privileged mode (generally abbreviated as EN)
config T enter global configuration mode
interface fa 0/1 view of a port into the switch mode
exit mode returns to the upper
end returns the mode from global to privileged mode -
Configure the switch telnet feature, and configure the switch for remote login via PC.
https://blog.csdn.net/gengkui9897/article/details/85141157 -
Switch port aggregation configuration
https://blog.csdn.net/gengkui9897/article/details/85143526
using two straight lines connecting two switches -
Switch Configuration VLAN: https://blog.csdn.net/gengkui9897/article/details/85145186
different switch port connected to two different vlan, and want to switch ports connected to two trunk mode -
Three switches (3650 require the power button, but did not find, 3560 does not require the power button)
three switches Basic configuration: https://blog.csdn.net/gengkui9897/article/details/85160278
three switch ports default to the second floor mouth, if you need to enable three functions need to enter port no switchport command. -
The use of three switches for inter-VLAN routing: https://blog.csdn.net/gengkui9897/article/details/85166610
-
Rapid Spanning Tree Protocol RSTP Configuration: https://blog.csdn.net/gengkui9897/article/details/85179549
Router
no shutdown to open port
- How to configure the router, and how to use Telnet remote login via PC router:
https://blog.csdn.net/gengkui9897/article/details/85198417 - How to configure the router-arm routing, data communication between different VLAN.
https://blog.csdn.net/gengkui9897/article/details/85199436 - Router Interface Configuration
- How to configure a static route to the router: https://blog.csdn.net/gengkui9897/article/details/85202751
ip route 192.168.1.0 255.255.255.0 192.168.3.1
increase 192.168.1.0/24 entry will be forwarded to 192.168.3.1 ( next hop address)
- 如何为路由器和三层交换机配置RIP协议:
https://blog.csdn.net/gengkui9897/article/details/85209701
注意点:三层交换机开了路由的端口也可以作为网关
- 路由器OSPF动态路由配置:https://blog.csdn.net/gengkui9897/article/details/85216203
注意点:与RIP设置类似,只是添加网络时命令不同
- 路由器综合路由配置:注意线的类型
https://blog.csdn.net/gengkui9897/article/details/85217272
注意点:需要对路由器进行路由重分布
路由器不同端口配置不同协议
- 标准IP访问控制列表的配置方法
(在路由器配置禁止转发的IP列表,但不经过路由器转发的ping能够通):https://blog.csdn.net/gengkui9897/article/details/85218255
注意点:线的类型
- 网络地址转换NAT配置:https://blog.csdn.net/gengkui9897/article/details/85219378
笔记本
- 关电源–>拔掉以太网卡–>插上无线网卡–>打开电源:就可以连无线了
通用
- 鼠标停留在设备上可以查看设备的信息(IP地址,接口,接口的MAC地址等)
一些常用命令
- no shutdown:启动端口
- ip address 192.168.16.1 255.255.255.0 :设置端口IP
- int fa 0/1 :打开端口0/1
- int vlan 10: Open VLAN 10
- ip route 192.168.16.0 255.255.240.0 192.168.21.1: Set routing entry and forwards 192.168.16.0/21 to 192.168.21.1
ip route 0.0.0.0 0.0.0.0 next-hop IP: Set the default route - no ip route ···: Cancel route entry
- default int fa 0/1: 0/1 cancel all the configuration port
- switchport access vlan 10: The current port to VLAN 10
- switchport trunk encapsulation dot1q: a package to the current port interface encapsulation protocol
- switchport mode trunk: the port as a trunk mode (can not be performed, the first use on a command)
- show run: display configuration (switches, routers)