设为首页收藏本站language 语言切换
查看: 1886|回复: 2
收起左侧

[求助] 防火墙做vlanif的问题

[复制链接]
发表于 2020-12-29 18:01:11 | 显示全部楼层 |阅读模式

                               
登录/注册后可看大图
问题:PC1不能ping通PC2。交换机配置:只起了20 30 两个vlan,四个口都是access口[Huawei]dis cu#
sysname Huawei
#
vlan batch 20 30
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1                        
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type access
port default vlan 20
#
interface Ethernet0/0/2
port link-type access
port default vlan 30
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface Ethernet0/0/9                  
#
interface Ethernet0/0/10
#
interface Ethernet0/0/11
#
interface Ethernet0/0/12
#
interface Ethernet0/0/13
#
interface Ethernet0/0/14
#
interface Ethernet0/0/15
#
interface Ethernet0/0/16
#
interface Ethernet0/0/17
#
interface Ethernet0/0/18
#
interface Ethernet0/0/19
#
interface Ethernet0/0/20
#
interface Ethernet0/0/21                  
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 30
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
port-group link-acc
#
return
[Huawei]            

防火墙配置:接口已经加入安全域,域间放行。[USG6000V1]dis cu
2020-12-29 10:00:03.060
!Software Version V500R005C10SPC300
#
sysname USG6000V1
#
l2tp domain suffix-separator @
#
vlan batch 20 30
#
ipsec sha2 compatible enable
#
undo telnet server enable
undo telnet ipv6 server enable
#
update schedule location-sdb weekly Sun 02:09
#
firewall defend action discard
#
banner enable
#
user-manage web-authentication security port 8887
undo privacy-statement english
undo privacy-statement chinese
page-setting
user-manage security version tlsv1.1 tlsv1.2
password-policy                           
level high
user-manage single-sign-on ad
user-manage single-sign-on tsm
user-manage single-sign-on radius
user-manage auto-sync online-user
#
web-manager security version tlsv1.1 tlsv1.2
web-manager enable
web-manager security enable
#
firewall dataplane to manageplane application-apperceive default-action drop
#
undo ips log merge enable
#
decoding uri-cache disable
#
update schedule ips-sdb daily 05:27
update schedule av-sdb daily 05:27
update schedule sa-sdb daily 05:27
update schedule cnc daily 05:27
update schedule file-reputation daily 05:27
#
ip vpn-instance default
ipv4-family                              
#
time-range worktime
  period-range 08:00:00 to 18:00:00 working-day
#
ike proposal default
encryption-algorithm aes-256 aes-192 aes-128
dh group14
authentication-algorithm sha2-512 sha2-384 sha2-256
authentication-method pre-share
integrity-algorithm hmac-sha2-256
prf hmac-sha2-256
#
aaa
authentication-scheme default
authentication-scheme admin_local
authentication-scheme admin_radius_local
authentication-scheme admin_hwtacacs_local
authentication-scheme admin_ad_local
authentication-scheme admin_ldap_local
authentication-scheme admin_radius
authentication-scheme admin_hwtacacs
authentication-scheme admin_ad
authorization-scheme default
accounting-scheme default               
domain default
  service-type internetaccess ssl-vpn l2tp ike
  internet-access mode password
  reference user current-domain
manager-user audit-admin
  password cipher @%@%X=\wU()~BF2jdM!i*3M5RYW$#09g5w|9d!]~aF//#&C"YW'R@%@%
  service-type web terminal
  level 15

manager-user api-admin
  password cipher @%@%7P+\C$."A$W!{J"UyNROP3~WU8p^INxu{PT8ab:0d0J"3~ZP@%@%
  level 15

manager-user admin
  password cipher @%@%=N|SSE$x>-,"LCLpHx_%1S%gdrik54oOV(J.K/UiCM!RS%j1@%@%
  service-type web terminal
  level 15

role system-admin
role device-admin
role device-admin(monitor)
role audit-admin
bind manager-user audit-admin role audit-admin
bind manager-user admin role system-admin
#
interface Vlanif20
ip address 10.1.2.253 255.255.255.0
#
interface Vlanif30
ip address 10.1.3.253 255.255.255.0
#
l2tp-group default-lns
#
interface GigabitEthernet0/0/0
undo shutdown
ip binding vpn-instance default
ip address 192.168.0.1 255.255.255.0
alias GE0/METH
#
interface GigabitEthernet1/0/0
portswitch
undo shutdown
port link-type access
port default vlan 20
#
interface GigabitEthernet1/0/1
portswitch
undo shutdown                           
port link-type access
port default vlan 30
#
interface GigabitEthernet1/0/2
undo shutdown
#
interface GigabitEthernet1/0/3
undo shutdown
#
interface GigabitEthernet1/0/4
undo shutdown
#
interface GigabitEthernet1/0/5
undo shutdown
#
interface GigabitEthernet1/0/6
undo shutdown
#
interface Virtual-if0
#
interface NULL0
#
firewall zone local
set priority 100                        
#
firewall zone trust
description trust_trust
set priority 85
add interface GigabitEthernet0/0/0
add interface GigabitEthernet1/0/0
add interface GigabitEthernet1/0/1
#
firewall zone untrust
set priority 5
#
firewall zone dmz
set priority 50
#
undo ssh server compatible-ssh1x enable
ssh authentication-type default password
ssh server cipher aes256_ctr aes128_ctr
ssh server hmac sha2_256 sha1
ssh client cipher aes256_ctr aes128_ctr
ssh client hmac sha2_256 sha1
#
firewall detect ftp
#
user-interface con 0                     
authentication-mode aaa
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
user-interface vty 16 20
#
pki realm default
#
sa
#
location
#
multi-linkif
mode proportion-of-weight
#
right-manager server-group
#
device-classification
device-group pc
device-group mobile-terminal
device-group undefined-group
#
user-manage server-sync tsm
#                                         
security-policy
rule name trust_trust
  source-zone trust
  destination-zone trust
  action permit
#
auth-policy
#
traffic-policy
#
policy-based-route
#
nat-policy
#
quota-policy
#
pcp-policy
#
dns-transparent-policy
#
rightm-policy
#
return
[USG6000V1]           

发表于 2020-12-29 20:14:56 | 显示全部楼层
本帖最后由 frostmourne 于 2020-12-29 20:21 编辑

麻烦以后发帖子只发关键配置行不行?看的人好累。
拓扑图呢?
沙发 2020-12-29 20:14:56 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-12-30 16:42:52 | 显示全部楼层
frostmourne 发表于 2020-12-29 20:14
麻烦以后发帖子只发关键配置行不行?看的人好累。
拓扑图呢?

截图好像没上传,我重新发帖吧。谢谢提醒
板凳 2020-12-30 16:42:52 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-4 18:53 , Processed in 0.063393 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表