sys sysname SW1 undo info-center enable vlan batch 2 10 20 int g0/0/1 port link-type access port default vlan 10 int g0/0/2 port link-type access port default vlan 20 int vlanif 10 ip add 10.0.10.254 24 int vlanif 20 ip add 10.0.20.254 24 int vlanif 2 ip 10.0.11.1 24 int g0/0/3 port link-type access port default vlan 2 quit ospf 1 area 0 network 10.0.10.254 0.0.0.0 network 10.0.20.254 0.0.0.0 network 10.0.11.1 0.0.0.0 quit quit
AR1配置
1 2 3 4 5 6 7 8 9 10 11 12 13
sys sysname AR1 int g0/0/0 ip add 10.0.11.254 24 int g0/0/1 ip add 10.0.12.1 24 quit ospf 1 area 0 network 10.0.11.254 0.0.0.0 network 10.0.12.1 0.0.0.0 quit quit
AR2配置
1 2 3 4 5 6 7 8 9 10 11 12 13
sys sysname AR2 int g0/0/0 ip add 10.0.12.2 24 int g0/0/1 ip add 10.0.30.254 24 quit ospf 1 area 0 network 10.0.12.2 0.0.0.0 network 10.0.30.254 0.0.0.0 quit quit
[AR1]time-range daily-policy ? <hh:mm> Starting time from The beginning point of the time range [AR1]time-range daily-policy 00:00 ? to The ending point of periodic time-range [AR1]time-range daliy-policy 00:00 to 18:00 ? <0-6> Day of the week(0 is Sunday) Fri Friday Mon Monday Sat Saturday Sun Sunday Thu Thursday Tue Tuesday Wed Wednesday daily Every day of the week off-day Saturday and Sunday working-day Monday to Friday [AR1]time-range daily-policy 00:00 to 18:00 daily [AR1]acl 3000 [AR1-acl-adv-3000]rule permit tcp source 10.0.10.0 0.0.0.255 destination 10.0.30 .0 0 destination-port eq 80 time-range daliy-policy