7) 是否使用缺省IP地址: z ,P:i$
Configure Default IP addresses? [no]: yes z ,P:i$
8) 是否使用TCP头压缩: z ,P:i$
Configure for TCP Header Compression? [yes]: z ,P:i$
9) 是否在异步口上使用路由表更新: z ,P:i$
Configure for routing updates on async links? [no]: y z ,P:i$
10) 是否设置异步口上的其它协议。 z ,P:i$
接下来,系统会对每个接口进行参数的设置。 z ,P:i$
1.Configuring interface Ethernet0: z ,P:i$
1) 是否使用此接口: z ,P:i$
Is this interface in use? [yes]: z ,P:i$
2) 是否设置此接口的IP参数: z ,P:i$
Configure IP on this interface? [yes]: z ,P:i$
3) 设置接口的IP地址: z ,P:i$
IP address for this interface: 192.168.162.2 z ,P:i$
4) 设置接口的IP子网掩码: z ,P:i$
Number of bits in subnet field [0]: z ,P:i$
Class C network is 192.168.162.0, 0 subnet bits; mask is /24 z ,P:i$
z ,P:i$
四、常用命令 z ,P:i$
1. 帮助 z ,P:i$
在IOS操作中,无论任何状态和位置,都可以键入“?”得到系统的帮助。 z ,P:i$
2. 改变命令状态 z ,P:i$
任务 命令 z ,P:i$
进入特权命令状态 enable z ,P:i$
退出特权命令状态 disable z ,P:i$
进入设置对话状态 setup z ,P:i$
进入全局设置状态 config terminal z ,P:i$
退出全局设置状态 end z ,P:i$
进入端口设置状态 interface type slot/number z ,P:i$
进入子端口设置状态 interface type number.subinterface [point-to-point | multipoint] z ,P:i$
进入线路设置状态 line type slot/number z ,P:i$
进入路由设置状态 router protocol z ,P:i$
退出局部设置状态 exit z ,P:i$
3. 显示命令 z ,P:i$
任务 命令 z ,P:i$
查看版本及引导信息 show version z ,P:i$
查看运行设置 show running-config z ,P:i$
查看开机设置 show startup-config z ,P:i$
显示端口信息 show interface type slot/number z ,P:i$
显示路由信息 show ip router z ,P:i$
4. 拷贝命令 z ,P:i$
用于IOS及CONFIG的备份和升级 z ,P:i$
5. 网络命令 z ,P:i$
任务 命令 z ,P:i$
登录远程主机 telnet hostname|IP address z ,P:i$
网络侦测 ping hostname|IP address z ,P:i$
路由跟踪 trace hostname|IP address z ,P:i$
z ,P:i$
6. 基本设置命令 z ,P:i$
任务 命令 z ,P:i$
全局设置 config terminal z ,P:i$
设置访问用户及密码 username username password password z ,P:i$
设置特权密码 enable secret password z ,P:i$
设置路由器名 hostname name z ,P:i$
设置静态路由 ip route destination subnet-mask next-hop z ,P:i$
启动IP路由 ip routing z ,P:i$
启动IPX路由 ipx routing z ,P:i$
端口设置 interface type slot/number z ,P:i$
设置IP地址 ip address address subnet-mask z ,P:i$
设置IPX网络 ipx network network z ,P:i$
激活端口 no shutdown z ,P:i$
物理线路设置 line type number z ,P:i$
启动登录进程 login [local|tacacs server] z ,P:i$
设置登录密码 password password z ,P:i$
z ,P:i$
z ,P:i$
五、配置IP寻址 z ,P:i$
z ,P:i$
1. IP地址分类 z ,P:i$
IP地址分为网络地址和主机地址二个部分,A类地址前8位为网络地址,后24位为主机地址,B类地址16位为网络 z ,P:i$
地址,后16位为主机地址,C类地址前24位为网络地址,后8位为主机地址,网络地址范围如下表所示: z ,P:i$
种类 网络地址范围 z ,P:i$
A 1.0.0.0 到126.0.0.0有效 0.0.0.0 和127.0.0.0保留 z ,P:i$
B 128.1.0.0到191.254.0.0有效 128.0.0.0和191.255.0.0保留 z ,P:i$
z ,P:i$