一、配置本地用户名,密码
local-user admin
password simple A123456789
authorization-attribute user-role level-15 授权属性 用户角色 数量等级15
service-type telnet 服务类型
service-type http https
quit
user-interface vty 0 4 //用户界面 vty 终端,线路
authentication-mode scheme // authentication认证模式 AAA用户名密码
开启telnet
telnet server enable
二、配置wan口地址
interface Gigabitethernet 0/0 进入连接运营商设备的接口
description waiwang 添加描述
ip address 118.54.123.54 255.255.255.248 配置运营商
nat outbound //wan口配置NAT,实现内外网地址转换
quit
三、配置内网网关
interface gigabitethernet 0/1
description neiwang
ip address 192.168.2.254 255.255.255.0 //内网网关
quit
四、配置HDCP
dhcp enable
dhcp server ip-pool 1 //创建地址池
network 192.168.2.0 mask 255.255.255.0 //ip地址范围
dns-list 114.114.114.114 8.8.8.8 //设置dns
gateway-list 192.168.2.254 //网关地址
quit
五、配置默认路由
ip route-static 0.0.0.0 0 118.54.123.53 //下一跳地址为运营商提供的网关地址
保存配置
save force // force:表示直接将当前配置保存到下次启动配置文件
display current-configuration 查看当前配置
留言与评论(共有 0 条评论) “” |