F1050双线物理断切换双线无NQA

[F1050]dis cur
#
version 7.1.054, Ess 9308P05
#
sysname F1050
#
context Admin id 1
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
ip unreachables enable
ip ttl-expires enable
#
dhcp enable
#
password-recovery enable
#
vlan 1
#
dhcp server ip-pool Lan
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 202.99.166.4 222.222.222.222
forbidden-ip 192.168.1.1
#
interface NULL0
#
interface GigabitEthernet1/0/0
port link-mode route
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode route
#
interface GigabitEthernet1/0/2
port link-mode route
description toLianTong
ip address 172.16.11.11 255.255.255.0
nat outbound
#
interface GigabitEthernet1/0/3
port link-mode route
description toDianXin
ip address 172.16.12.12 255.255.255.0
nat outbound
#
interface GigabitEthernet1/0/4
port link-mode route
#
interface GigabitEthernet1/0/5
port link-mode route
#
interface GigabitEthernet1/0/6
port link-mode route
description toLan
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/7
port link-mode route
#
interface GigabitEthernet1/0/8
port link-mode route
#
interface GigabitEthernet1/0/9
port link-mode route
#
interface GigabitEthernet1/0/10
port link-mode route
#
interface GigabitEthernet1/0/11
port link-mode route
#
interface GigabitEthernet1/0/12
port link-mode route
#
interface GigabitEthernet1/0/13
port link-mode route
#
interface GigabitEthernet1/0/14
port link-mode route
#
interface GigabitEthernet1/0/15
port link-mode route
#
interface GigabitEthernet1/0/16
port link-mode route
#
interface GigabitEthernet1/0/17
port link-mode route
#
interface GigabitEthernet1/0/18
port link-mode route
#
interface GigabitEthernet1/0/19
port link-mode route
#
interface GigabitEthernet1/0/20
port link-mode route
#
interface GigabitEthernet1/0/21
port link-mode route
#
interface GigabitEthernet1/0/22
port link-mode route
#
interface GigabitEthernet1/0/23
port link-mode route
#
object-policy ip Local-trust---Local<--->trust解决PC与F1050互通的问题,比如可以获取DHCP的IP了
rule 0 pass
#
object-policy ip Local-untrust---可以ping通外网了
rule 0 pass
#
object-policy ip trust-Local---与隔上的是一对
rule 0 pass
#
object-policy ip trust-untrust---可以上网了
rule 0 pass
#
object-policy ip untrust-trust---没起用,应该用在nat server映射内网服务器时用
rule 0 pass
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/6
#
security-zone name DMZ
#
security-zone name Untrust
import interface GigabitEthernet1/0/2
import interface GigabitEthernet1/0/3
#
zone-pair security source Local destination Trust---起用区域间策略4个 Local-trust双向2个 trust->untrust 1个 Local-untrust 1个
object-policy apply ip Local-trust
#
zone-pair security source Local destination Untrust
object-policy apply ip Local-untrust
#
zone-pair security source Trust destination Local
object-policy apply ip trust-Local
#
zone-pair security source Trust destination Untrust
object-policy apply ip trust-untrust
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line con 0---去掉下行的authentication-mode scheme导致用console线连接时不需要 用户名+密码,否则清除配置时默认有,会要用户名密码:admin/admin
user-role network-admin
#
line vty 0 4
authentication-mode scheme---默认的 telnet时以用户名+密码方式
user-role network-admin
#
line vty 5 63
user-role network-operator
#
ip route-static 0.0.0.0 0 172.16.11.254 track 1---双线优先级不同的双track默认路由(网关)
ip route-static 0.0.0.0 0 172.16.12.254 track 2 preference 80---注意一个是track1 一个是track2,后来背着重写都写的truck1导致无法切换
#
undo info-center enable
#
undo ssh server compatible-ssh1x enable
#
domain system
#
aaa session-limit ftp 16
aaa session-limit telnet 16
aaa session-limit ssh 16
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ==
service-type telnet terminal http
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
ip http enable---默认可以用web,用网线接MGT端口G1/0/0 并把PC配置成192.168.0.0/24网段,别和本防火墙的192.168.0.1冲突即可
ip https enable
#
return
[F1050]

 

posted @ 2023-01-10 16:39  techNote  阅读(20)  评论(0编辑  收藏  举报