haoaooaoaoaoaoaoaoaoafajdfs;fldas;dfasj;fdlasfdasnt e1
ip add 192.168.1.1 255.255.255.0
no shu
2, 添加默认路由
ip route 0.0.0.0 0.0.0.0 e0
3,设置 内网 DHCP
ip dhcp pool mypool
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 202.101.224.68
dns-server 202.101.226.68
exit
-------------------------------------------------------------
如果外网设备 给你提供了 DHCP服务 你需要如下 配置
int e0
ip address dhcp
no shu
int e1
ip add 192.168.1.1 255.255.255.0
no shu
ip dhcp pool mypool
im all
default-router 192.168.1.1
network 192.168.1.0 255.255.255.0