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
配置舉例:
河南億恩科技股份有限公司(mszdt.com)始創(chuàng)于2000年,專注服務器托管租用,是國家工信部認定的綜合電信服務運營商。億恩為近五十萬的用戶提供服務器托管、服務器租用、機柜租用、云服務器、網(wǎng)站建設、網(wǎng)站托管等網(wǎng)絡基礎服務,另有網(wǎng)總管、名片俠網(wǎng)絡推廣服務,使得客戶不斷的獲得更大的收益。
服務器/云主機 24小時售后服務電話:
0371-60135900
虛擬主機/智能建站 24小時售后服務電話:
0371-55621053
網(wǎng)絡版權侵權舉報電話:
0371-60135995
服務熱線:
0371-60135900