<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>baalchina &#187; 配置</title>
	<atom:link href="http://www.baalchina.net/tag/%e9%85%8d%e7%bd%ae/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baalchina.net</link>
	<description>baalchina技术日志</description>
	<lastBuildDate>Tue, 27 Sep 2011 07:12:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>登录到一台设备后首先需要做的</title>
		<link>http://www.baalchina.net/2008/09/first-todo-logging/</link>
		<comments>http://www.baalchina.net/2008/09/first-todo-logging/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 12:41:26 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[ccie]]></category>
		<category><![CDATA[路由交换]]></category>
		<category><![CDATA[笔记]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://baalchina.nau.edu.cn/?p=152</guid>
		<description><![CDATA[当我们登录到一台路由器/交换机之后（无论真实设备还是模拟器），首先需要做的是：
Router(config)#hostname R1
R1(config)#no ip domain lookup
R1(config)#line console 0
R1(config-line)#logging synchronous
R1(config-line)#no exec-timeout
作用分别是：

指定Hostname
关闭域名查找，避免打错命令浪费时间
logging synchronous的作用就是会让提示出来之后，依旧保存用户之前输入的命令
使得终端不会超时

 
看一下使用synchronous之前的提示：

Router(config)#int e0/0
Router(config-if)#no shut
Router(config-if)# ip add 192.
*Mar  1 00:34:04.370: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar  1 00:34:05.372: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up168.1.1 255.255.255.0
Router(config-if)#

之后

Router(config)#int e0/0
Router(config-if)#no sh
Router(config-if)#ip add 192.16
*Mar  1 00:35:37.294: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar  1 [...]]]></description>
			<content:encoded><![CDATA[<p>当我们登录到一台路由器/交换机之后（无论真实设备还是模拟器），首先需要做的是：</p>
<blockquote><p>Router(config)#hostname R1<br />
R1(config)#no ip domain lookup<br />
R1(config)#line console 0<br />
R1(config-line)#logging synchronous<br />
R1(config-line)#no exec-timeout</p></blockquote>
<p>作用分别是：</p>
<ol>
<li>指定Hostname</li>
<li>关闭域名查找，避免打错命令浪费时间</li>
<li>logging synchronous的作用就是会让提示出来之后，依旧保存用户之前输入的命令</li>
<li>使得终端不会超时</li>
</ol>
<p> </p>
<p>看一下使用synchronous之前的提示：</p>
<blockquote><p>
Router(config)#int e0/0<br />
Router(config-if)#no shut<br />
Router(config-if)# ip add 192.<br />
*Mar  1 00:34:04.370: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up<br />
*Mar  1 00:34:05.372: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up168.1.1 255.255.255.0<br />
Router(config-if)#
</p></blockquote>
<p>之后</p>
<blockquote><p>
Router(config)#int e0/0<br />
Router(config-if)#no sh<br />
Router(config-if)#ip add 192.16<br />
*Mar  1 00:35:37.294: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up<br />
*Mar  1 00:35:38.296: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up<br />
Router(config-if)#ip add 192.168.1.1 255.255.255.0<br />
Router(config-if)#
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2008/09/first-todo-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

