1.配置接口IP地址
[Router] vlan 100
[Router-vlan100] quit
[Router] interface vlanif
100
[Router-Vlanif100] ip address 192.168.20.1 24
[Router-Vlanif100]
quit
[Router] interface ethernet 2/0/0
[Router-Ethernet2/0/0] port
link-type access
[Router-Ethernet2/0/0] port default vlan
100
[Router-Ethernet2/0/0] quit
[Router] vlan 200
[Router-vlan200]
quit
[Router] interface vlanif 200
[Router-Vlanif200] ip address 10.0.0.1
24
[Router-Vlanif200] quit
[Router] interface ethernet
2/0/1
[Router-Ethernet2/0/1] port link-type
access
[Router-Ethernet2/0/1] port default vlan
200
[Router-Ethernet2/0/1] quit
[Router] interface gigabitethernet
3/0/0
[Router-GigabitEthernet3/0/0] ip address 202.169.10.2 24
[Router-GigabitEthernet3/0/0]
quit
2.配置缺省路由,指定下一跳地址为202.169.10.1
[Router] ip
route-static 0.0.0.0 0.0.0.0 202.169.10.1
3.配置NAT
Outbound
[Router] nat address-group 1 202.169.10.100
202.169.10.200
[Router] nat address-group 2 202.169.10.80 202.169.10.83
[Router] acl 2000
[Router-acl-basic-2000] rule 5 permit source
192.168.20.0 0.0.0.255
[Router-acl-basic-2000] quit
[Router] acl
2001
[Router-acl-basic-2001] rule 5 permit source 10.0.0.0
0.0.0.255
[Router-acl-basic-2001] quit
[Router] interface gigabitethernet
3/0/0
[Router-GigabitEthernet3/0/0] nat outbound 2000 address-group 1
no-pat
[Router-GigabitEthernet3/0/0] nat outbound 2001 address-group
2
[Router-GigabitEthernet3/0/0] quit
配置举例:
河南亿恩科技股份有限公司(www.enkj.com)始创于2000年,专注服务器托管租用,是国家工信部认定的综合电信服务运营商。亿恩为近五十万的用户提供服务器托管、服务器租用、机柜租用、云服务器、网站建设、网站托管等网络基础服务,另有网总管、名片侠网络推广服务,使得客户不断的获得更大的收益。
服务器/云主机 24小时售后服务电话:
0371-60135900
虚拟主机/智能建站 24小时售后服务电话:
0371-55621053
网络版权侵权举报电话:
0371-60135995
服务热线:
0371-60135900