Chinaunix首页 | 论坛 | 博客
  • 博客访问: 722250
  • 博文数量: 256
  • 博客积分: 3502
  • 博客等级: 中校
  • 技术积分: 3988
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(256)

文章存档

2014年(11)

2013年(134)

2012年(111)

我的朋友

分类:

2012-12-17 12:29:02

在firewall f100 和 switch5100上做的

firewall:
disp cur
system-view

acl 1000
rule 1 permit source 192.168.1.1 255.255.255.0
rule 2 permit source 192.168.2.1 255.255.255.0
rule 3 deny source any

user-interface vty 0 4
authenmode password
set authen password simple test


int e1
ip add 222.111.1.1 255.255.255.248
nat outbound 1000

int e0
no ip addr
int e0.1
ip addr 192.168.1.1 255.255.255.0
-type dot1q vid 10
int e0.2
ip addr 192.168.2.1 255.255.255.0
vlan-type dot1q vid 20

ip route-static 0.0.0.0 0.0.0.0 222.111.1.1

write (or save)

switch:
system-view
vlan 10
vlan 20

int f0/0
port link-type trunk
port trunk permit vlan all

int f0/1
port link-type access
port access vlan 10

int f0/2
port link-type access
port access vlan 20

阅读(838) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~