
DDN专线配置案例- -
对于一个局域网的外连,有很多种方式DDN专线就是其中的一种(具体外连形式请见图片基础部分).在上面的事例中介绍了金色家园内部局域网接入当地ISP的顶配.
家园内部局域网:10.1.8.0/24
家园路由器的Ethernet 0:10.1.8.1/24
Serial : 192.168.0.1/30
SP路由器Serial : 192.168.0.2/30
当然Cisco操作系统的玄虚性以及其在市场中的占有率,决定了人们对其技术的一种仰慕,甚至想把自己的技术奋斗目标与 Cisco 绑定.反而ddn专线,技术总归是技术,所有都是从头开始的.
上面给出蓝色家园路由器的完全配置
1.route>en 进入权利状态
2.route#config t 通过网关进行配置
3.在顶配状况下

给出E0/S0的IP地址
#int e0/
#ip add 10.1.8.1 255.255.255.0
#no shut
#int s0/0
#ip add 192.168.0.1 255.255.255.252
#en ppp (禁止在专线上发送ppp包ddn专线,或者不写,对于两端都是Cisco路由器是没问题的,会默认为Cisco 自己的打包形式)
#no shut
4.给出蓝色家园到ISP的路由,因为深色家园只有一个出路,不过给出静态路由
#ip route 0.0.0.0 0.0.0.0 192.168.0.2
如果

#ip route 0.0.0.0 0.0.0.0 serial
5.为了确保远程管理的Telnet 必须给出登陆用户
#line vty 4
#password bluegarden
6.Ctrl+Z退出特权配置状况 wr将配置写入路由器即可
配置结果(图文:赵春欢)
Router Con0 is now available
Press RETURN to get started.
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int e0
Router(config-if)#ip address 10.1.8.1 255.255.255.0
Router(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet, changed state to up
%LINK-3-UPDOWN: Interface Ethernet, changed state to up
Router(config-if)#int s0/0
% Invalid input detected at '^' marker.
Router(config-if)#int s0
Router(config-if)#ip address 192.
% Incomplete command.
Router(config-if)#ip address 192.168.0.1 255.255.255.252

Bad mask 0xFFFFC800 for address 192.168.0.1
Router(config-if)#enable ppp
% Invalid input detected at '^' marker.
Router(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial, changed state to up
%LINK-3-UPDOWN: Interface Serial, changed state to up
Router(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Router#con t
% Invalid input detected at '^' marker.
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 0.0.0.0 0.0.0.0 serial
% Incomplete command.
Router(config)#lin
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-119259-1.html
说的太好了
我们怕什么