Cisco 4503 核心交换配置实例
来源:互联网 发布:红鸟棋牌源码 编辑:程序博客网 时间:2024/06/07 00:43
en
vla dat
vlan 2
name JH
vlan 3
name LL
vlan 4
name A
vlan 5
name HO
vlan 6
name QQ
hostname heixin
conf t
interface Vlan 1
description to guanli
ip address 1.1.1.1 255.255.255.0
interface Vlan 2
description to FW
ip address 192.168.2.1 255.255.255.0
interface Vlan 3
description to XC
ip address 192.168.3.1 255.255.255.0
interface Vlan 4
description to XV
ip address 192.168.4.1 255.255.255.0
interface Vlan 6
description to Xw
ip address 192.168.6.1 255.255.255.0
ip routing 开启路由模式
ip route 0.0.0.0 0.0.0.0 192.168.6.1
ip route 192.168.2.0 255.255.255.0 192.168.6.2
ip route 192.168.3.0 255.255.255.0 192.168.6.2
ip route 192.168.4.0 255.255.255.0 192.168.6.2
interface range fastEthernet 0/2-5
switchport trunk encapsulation dot1q
switchport trunk native vlan 2 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
interface range fastEthernet 0/6-10
switchport trunk encapsulation dot1q
switchport trunk native vlan 3 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
interface range fastEthernet 0/11-16
switchport trunk encapsulation dot1q
switchport trunk native vlan 4 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
iinterface fastEthernet 0/1
description FW
switchport mode access
switchport access vlan 6
interface range fastEthernet 0/17-21
switchport access vlan 2
switchport mode access
interface range fastEthernet 0/21-22
switchport access vlan 3
switchport mode access
interface range fastEthernet 0/23-24
switchport access vlan 4
switchport mode access
DHCP 配置
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp pool vlan3
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp pool vlan4
network 192.168.4.0 255.255.255.0
default-router 192.168.4.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp excluded-address 192.168.4.241 192.168.4.244 不分配的地址
show int des 查看接口
ssh 配置
ip domain-name cisco.com
crypto key generate rsa (1024)
line vty 0 4
login local
transport input Telnet ssh
line console 0
no exec-t
logg syn
enable secret cisco 特权模式密码
aaa new-model 全局配置AAA
aaa authentication login admin
aaa authentication login default local
username admin password cisco
username nousername secret nopassword
ip ssh time-out 180
ip ssh authentication-retries
wr
vla dat
vlan 2
name JH
vlan 3
name LL
vlan 4
name A
vlan 5
name HO
vlan 6
name QQ
hostname heixin
conf t
interface Vlan 1
description to guanli
ip address 1.1.1.1 255.255.255.0
interface Vlan 2
description to FW
ip address 192.168.2.1 255.255.255.0
interface Vlan 3
description to XC
ip address 192.168.3.1 255.255.255.0
interface Vlan 4
description to XV
ip address 192.168.4.1 255.255.255.0
interface Vlan 6
description to Xw
ip address 192.168.6.1 255.255.255.0
ip routing 开启路由模式
ip route 0.0.0.0 0.0.0.0 192.168.6.1
ip route 192.168.2.0 255.255.255.0 192.168.6.2
ip route 192.168.3.0 255.255.255.0 192.168.6.2
ip route 192.168.4.0 255.255.255.0 192.168.6.2
interface range fastEthernet 0/2-5
switchport trunk encapsulation dot1q
switchport trunk native vlan 2 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
interface range fastEthernet 0/6-10
switchport trunk encapsulation dot1q
switchport trunk native vlan 3 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
interface range fastEthernet 0/11-16
switchport trunk encapsulation dot1q
switchport trunk native vlan 4 归属vlan
switchport trunk allowed vlan 2,3,4,5,6 允许2,3,4 vlan之间通信
switchport mode trunk
spanning-tree portfast trunk
iinterface fastEthernet 0/1
description FW
switchport mode access
switchport access vlan 6
interface range fastEthernet 0/17-21
switchport access vlan 2
switchport mode access
interface range fastEthernet 0/21-22
switchport access vlan 3
switchport mode access
interface range fastEthernet 0/23-24
switchport access vlan 4
switchport mode access
DHCP 配置
ip dhcp pool vlan2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp pool vlan3
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp pool vlan4
network 192.168.4.0 255.255.255.0
default-router 192.168.4.1
dns-server 202.99.224.68 202.99.224.8
ip dhcp excluded-address 192.168.4.241 192.168.4.244 不分配的地址
show int des 查看接口
ssh 配置
ip domain-name cisco.com
crypto key generate rsa (1024)
line vty 0 4
login local
transport input Telnet ssh
line console 0
no exec-t
logg syn
enable secret cisco 特权模式密码
aaa new-model 全局配置AAA
aaa authentication login admin
aaa authentication login default local
username admin password cisco
username nousername secret nopassword
ip ssh time-out 180
ip ssh authentication-retries
wr
0 0
- Cisco 4503 核心交换配置实例
- cisco三层交换配置命令
- cisco 2600 配置实例
- Cisco 2950 实例配置
- Cisco L2TP 配置实例
- cisco路由交换的常用配置
- CISCO Wireless AP1242配置实例
- Cisco VPN连接配置实例
- Cisco 3550配置DHCP实例
- cisco ASA 5505 配置实例
- Cisco 3800 路由器配置实例
- S6720 核心交换配置实战
- Cisco 三层交换 实现vlan间路由与dhcp配置
- Cisco基于策略路由的配置实例
- cisco 3640 voip配置实例解析
- Cisco 3725 CBWFQ 队列配置实例
- [Cisco技术]ASA配置failover实例
- Cisco ip account netfolw配置实例
- Java基础
- Android volley 解析(四)之缓存篇
- sqlite存储图片
- C/C++文件I/O操作
- 服务器 负载均衡 load balance
- Cisco 4503 核心交换配置实例
- java动态代理实现
- JAVA学习第二集:数据类型、运算符
- 51nod--1264 线段相交 (计算几何基础, 二维)
- 微信协议简单调研笔记
- setsockopt的作用和用法
- unable to execute dex multiple dex files define
- 使用dd命令分割开发板固件
- select、poll、epoll之间的区别总结[整理]