interface Fa0/0.2 encapsulation dot 343 ip address 172.16.43.254255.255.255.0 interface Fa0/0
no shutdown
配置L2-Switch0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
enable configure terminal vlan 343 name VLAN343 vlan 344 name VLAN344 exit interface range f0/1-2 switchport mode access switchport access vlan 343 interface range f0/4 switchport mode access switchport access vlan 344 end interface range f0/3 switchport mode trunk show vlan brief
出口路由Router 2单臂路由
配置Router 2
1 2 3 4 5 6 7 8 9 10
en conf t int Fa0/0.1 encapsulation dot 349 ip address 172.16.48.254255.255.255.0 int Fa0/0.2 encapsulation dot 350 ip address 172.16.49.254255.255.255.0
no shutdown
配置L2-Switch1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
enable configure terminal vlan 349 name VLAN349 vlan 350 name VLAN350 exit interface range f0/2 switchport mode access switchport access vlan 349 interface range f0/3 switchport mode access switchport access vlan 350 interface range f0/1 switchport mode trunk end show vlan brief
路由链路打通
路由Router 0
1 2 3 4
en conf t int Fa0/1 ip address 172.16.48.253255.255.255.0
configure terminal interface Fa0/0.1 ip nat inside interface Fa0/0.2 ip nat inside interface se1/0 ip nat outside exit ip nat pool napt-pool40.40.43.140.40.43.100 netmask 255.255.255.0
function hd = ideal_lp(wc, N) % 点 0 到 N-1 之间的理想脉冲响应 % wc = 截止频率 (弧度) % N = 理想滤波器的长度 tao = (N-1)/2; n = [0:(N-1)]; m = n - tao + eps; % 加一个小数以避免 0 作除数 hd = sin(wc * m) ./ (pi * m); end