锐捷路由器设置示例

锐捷路由器RG-RSR20-X系列路由器配置

设置流量any策略

ip access-list standard 10
10 permit any

设置外网接口0/0IP并绑定NAT

interface GigabitEthernet 0/0
ip nat outside
ip address 223.86.123.61 255.255.255.0
duplex auto
speed auto

设置NAT转换

ip nat inside source list 10 interface GigabitEthernet 0/0 overload

设置LAN接口VLAN1IP并绑定NAT

interface VLAN 1
ip nat inside
ip address 192.168.110.1 255.255.255.0

增加默认路由表

ip route 0.0.0.0 0.0.0.0 223.86.123.1

指定LAN接口VLAN10

interface GigabitEthernet 1/0
switchport access VLAN 1
interface GigabitEthernet 1/2
switchport access VLAN 1
interface GigabitEthernet 1/3
switchport access VLAN 1
interface GigabitEthernet 1/4
switchport access VLAN 1
interface GigabitEthernet 1/5
switchport access VLAN 1
interface GigabitEthernet 1/6
switchport access VLAN 1
interface GigabitEthernet 1/7
switchport access VLAN 1
interface GigabitEthernet 1/8
switchport access VLAN 1
interface GigabitEthernet 1/9
switchport access VLAN 1
interface GigabitEthernet 1/10
switchport access VLAN 1
interface GigabitEthernet 1/11
switchport access VLAN 1
interface GigabitEthernet 1/12
switchport access VLAN 1

全局启用DHCP并设置DHCP范围

service dhcp
ip dhcp pool ruijie
network 192.168.110.0 255.255.255.0
dns-server 183.221.253.100
default-router 192.168.110.1

设置telnet密码

line vty 0 4
privilege level 15
login
password Dy_111111`