博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
策略路由实验,指定出口
阅读量:5743 次
发布时间:2019-06-18

本文共 2932 字,大约阅读时间需要 9 分钟。

 

要达到的效果就是 

192.168.0.1 从 g0/0 100.0.0.1 网络出去
192.168.1.1 从 g0/1 200.0.0.1 网络出去
192.168.2.1 从 g0/2 210.0.0.1 网络出去

 

board add 0/10 24GE 

#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent 
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
vlan batch 10 20 30
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
acl number 2000 
rule 5 permit source 192.168.10.0 0.0.0.255 
acl number 2001 
rule 5 permit source 192.168.20.0 0.0.0.255 
acl number 2002 
rule 5 permit source 192.168.30.0 0.0.0.255 
#
traffic classifier 20 operator or
if-match acl 2001
traffic classifier 10 operator or
if-match acl 2000
traffic classifier 30 operator or
if-match acl 2002
#
traffic behavior 20
redirect ip-nexthop 200.0.0.2
traffic behavior 10
redirect ip-nexthop 100.0.0.2
traffic behavior 30
redirect ip-nexthop 210.0.0.2
#
traffic policy 20
classifier 20 behavior 20
traffic policy 10
classifier 10 behavior 10
traffic policy 30
classifier 30 behavior 30
#
aaa 
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default 
domain default_admin 
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0 
traffic-policy 10 inbound
#
interface Vlanif20
ip address 192.168.20.1 255.255.255.0 
traffic-policy 20 inbound
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0 
traffic-policy 30 inbound
#
interface GigabitEthernet0/0/0
ip address 210.0.0.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
ip address 100.0.0.1 255.255.255.0 
#
interface GigabitEthernet0/0/2
ip address 200.0.0.1 255.255.255.0 
#
interface GigabitEthernet10/0/0
#
interface GigabitEthernet10/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet10/0/2
port link-type access
port default vlan 20
#
interface GigabitEthernet10/0/3
port link-type access
port default vlan 30
#
interface GigabitEthernet10/0/4
#
interface GigabitEthernet10/0/5
#
interface GigabitEthernet10/0/6
#
interface GigabitEthernet10/0/7
#
interface GigabitEthernet10/0/8
#
interface GigabitEthernet10/0/9
#
interface GigabitEthernet10/0/10
#
interface GigabitEthernet10/0/11
#
interface GigabitEthernet10/0/12
#
interface GigabitEthernet10/0/13
#
interface GigabitEthernet10/0/14
#
interface GigabitEthernet10/0/15
#
interface GigabitEthernet10/0/16
#
interface GigabitEthernet10/0/17
#
interface GigabitEthernet10/0/18
#
interface GigabitEthernet10/0/19
#
interface GigabitEthernet10/0/20
#
interface GigabitEthernet10/0/21
#
interface GigabitEthernet10/0/22
#
interface GigabitEthernet10/0/23
#
interface NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

本文转自 是阿杰啊 51CTO博客,原文链接:http://blog.51cto.com/jschinamobile/1945006

转载地址:http://vwszx.baihongyu.com/

你可能感兴趣的文章
实现Hyper-V 虚拟机在不同架构的处理器间迁移
查看>>
简单使用saltstack
查看>>
针对web服务器容灾自动切换方案
查看>>
突破媒体转码效率壁垒 阿里云首推倍速转码
查看>>
容器存储中那些潜在的挑战和机遇
查看>>
R语言的三种聚类方法
查看>>
55%受访企业将物联网战略视为有效竞争手段
查看>>
深入理解Python中的ThreadLocal变量(上)
查看>>
如果一切即服务,为什么需要数据中心?
查看>>
《游戏开发物理学(第2版)》一导读
查看>>
Erlang简史(翻译)
查看>>
深入实践Spring Boot2.4.2 节点和关系实体建模
查看>>
信息可视化的经典案例:伦敦地铁线路图
查看>>
10个巨大的科学难题需要大数据解决方案
查看>>
Setting Up a Kerberos server (with Debian/Ubuntu)
查看>>
用 ThreadLocal 管理用户session
查看>>
setprecision后是要四舍五入吗?
查看>>
shiro初步 shiro授权
查看>>
上云就是这么简单——阿里云10分钟快速入门
查看>>
MFC多线程的创建,包括工作线程和用户界面线程
查看>>