ASA修正DNS

实验目的

公网IP访问内部服务器。

实验拓扑:

 

没有修正以前的配置

验证

可以看出内部主机得到的IP地址是公网IP,导致内部主机无法访问内部服务器。

修正以后的配置

验证:

可以看出已经正确解析出了真实的服务器地址。

继续配置使外部主机也能访问内部服务器(要注意新旧版本的区别)

验证

为了使内部主机也能访问外部服务器继续改造配置

验证

 

 

enable configure terminal hostname R1 ! 基本配置 ip dhcp excluded-address 172.16.1.1 172.16.1.10 ip dhcp excluded-address 172.16.2.1 172.16.2.10 ip dhcp excluded-address 172.16.31.1 172.16.31.10 ! DHCP 服务器配置 ip dhcp pool VLAN10 ip dhcp excluded-address 172.16.1.1 172.16.1.10 ip dhcp excluded-address 172.16.2.1 172.16.2.10 ip dhcp excluded-address 172.16.31.1 172.16.31.10 default-router 172.16.1.254 dns-server 8.8.8.8 ip dhcp pool VLAN20 network 172.16.2.0 255.255.255.0 default-router 172.16.2.254 dns-server 8.8.8.8 ip dhcp pool VLAN31 network 172.16.31.0 255.255.255.0 default-router 172.16.31.254 dns-server 8.8.8.8 ! 接口配置 interface Ethernet0/0 description to-R2 ip address 172.16.100.1 255.255.255.252 no shutdown interface Ethernet0/1 description to-SW1 switchport trunk encapsulation dot1q switchport mode trunk no shutdown interface Ethernet0/2 description to-SW2 switchport trunk encapsulation dot1q switchport mode trunk no shutdown interface Ethernet0/3 no shutdown interface Ethernet1/0 description to-ASA ip address 192.168.100.2 255.255.255.0 no shutdown ! OSPF 路由配置 router ospf 1 network 172.16.0.0 0.0.255.255 area 0 network 192.168.100.0 0.0.0.255 area 0 ! HSRP 冗余配置 interface Vlan10 ip address 172.16.1.254 255.255.255.0 standby 1 ip 172.16.1.1 standby 1 priority 110 standby 1 preempt ! NAT 配置 ip access-list standard LOCAL_NET permit 172.16.0.0 0.0.255.255 ip nat inside source list LOCAL_NET interface Ethernet1/0 overload interface Ethernet1/0 ip nat outside interface Ethernet0/1 ip nat inside interface Ethernet0/2 ip nat inside end write memory 这个是我配置的CiscoIOL的三层交换机R1的命令你帮我检查一下哪里有错误然后再发修改好完整的给我
最新发布
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值