1 Star 0 Fork 0

foxflying/switchTemplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hostname-2 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
Jason Murray 提交于 2016-08-15 21:02 . Initial Push.
! Example Switch Configuration
!
hostname hostname-2
!
vlan 10
name access-port
!
interface Loopback0
ip address 192.168.1.2 255.255.255.255
no ip redirects
no ip unreachables
no ip proxy-arp
!
interface Gi1/1
description core-1 P2P
no switchport
ip address 192.168.101.5 255.255.255.254
no ip redirects
no ip unreachables
no ip proxy-arp
no shutdown
!
interface Gi1/2
description core-2 P2P
no switchport
ip address 192.168.100.7 255.255.255.254
no ip redirects
no ip unreachables
no ip proxy-arp
no shutdown
!
interface Gi1/2
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/3
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/4
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/5
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/6
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/7
description access port
switchport
switchport mode access
switchport access vlan 10
interface Gi1/8
description access port
switchport
switchport mode access
switchport access vlan 10
!
interface Vlan10
description Access Network
ip address 192.168.201.254 255.255.255.0
ip helper-address 192.168.0.1
ip helper-address 192.168.0.2
no ip redirects
no ip unreachables
no ip proxy-arp
!
router ospf 1
router-id 192.168.1.2
nsf cisco
passive-interface default
no passive-interface gi1/1
no passive-interface gi1/1
no passive-interface Vlan10
!
ip access-list standard LINE_MGMT
permit 192.168.0.0 0.0.0.255
!
line con 0
exec-timeout 30 0
timeout login response 15
line vty 0 4
access-class LINE_MGMT in
exec-timeout 30 0
timeout login response 15
length 0
transport input ssh
line vty 5 15
access-class LINE_MGMT in
exec-timeout 30 0
timeout login response 15
length 0
transport input ssh
!
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/foxflying/switchTemplate.git
git@gitee.com:foxflying/switchTemplate.git
foxflying
switchTemplate
switchTemplate
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385