迈普路由器配置手册 系统基础
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
1
ᅮⱘ InfoExpress IOS 䜡㕂ੑҸˈҢ㗠䖒ࠄߚ㑻ֱᡸ㋏㒳ⱘⳂⱘˈ⹂ֱ㋏㒳ϡফ㒣ᥜᴗⱘ䆓䯂DŽ Shell ᄤ㋏㒳ᔧࠡЎ䜡㕂ੑҸⱘ䖤㸠ᦤկҹϟ辵ᓣˈϡৠⱘᓣᇍᑨѢϡৠⱘ㋏㒳ᦤ冫ヺˈ⫼ҹᦤ
ܼሔ䜡㕂ᓣϟˈ䗮䖛
ࡴᆚবᤶ䜡㕂
crypto ipsec transform-set ੑҸ䖯ܹ
router(cfg-crypto-trans
ᓣ
䆹ᓣˈৠᯊࠊᅮⳌᑨⱘ )#
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
g䜡㕂ࡴᆚবᤶ䲚ড়
খ᭄
ܼሔ䜡㕂ᓣϟˈ䗮䖛
ࡴᆚᇘ䜡㕂 crypto map ੑҸ䖯ܹ䆹 router(cfg-crypto-map)
1-1 InfoExpress ੑҸ㒧ᵘᓣ
1.3 ᨁᓎ䜡㕂⦃๗
⫼᠋ৃҹ䗮䖛ಯ辵䗨ᕘՓ⫼䏃⬅఼ᦤկⱘੑҸ㸠ˈϟ䴶ߚ߿ҟ㒡DŽ
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
4
1.3.1 䗮䖛䜡㕂ষ˄Console˅䜡㕂䏃⬅఼
݊Ҫ䜡㕂ᓣⳌ݇ゴ㡖Ё䖯㸠ҟ㒡ˈ㸼 1-1 ᦣ䗄њ辵ੑҸᓣⱘ䖯ܹᮍ⊩ঞᓣ䯈ⱘߛᤶᮍ⊩DŽ
㸼 1-1 InfoExpress ㋏㒳ᓣঞ݊ⳌѦ䯈ߛᤶᮍ⊩
ᓣৡ鹵
ᓣ䖯ܹᮍ⊩
㋏㒳ᦤ冫ヺ
䗔ߎᮍ⊩
ࡳ㛑䇈ᯢ
᱂䗮⫼᠋ᓣ Login
router>
ᠻ㸠 exit ੑҸ䗔ߎ
gᬍব㒜ッ䆒㕂 gᠻ㸠ᴀ⌟䆩 gᰒ冫㋏㒳ֵᙃ
2
䏃⬅䜡㕂ᓣ
ܼሔ䜡㕂ᓣϟᠻ㸠 Ⳍᑨⱘ䏃⬅䜡㕂ੑҸ
router(config-static)# router(config-rip)#
router(config-irmp)#
᭛ӊ㋏㒳䜡㕂 ܼሔᓣϟ䗮䖛ੑҸ
router(config-fs)#
ᓣ
filesystem 䖯ܹ䆹ᓣ
g䜡㕂 IP phone ষ˗ g䜡㕂 E1 ষ g䜡㕂ষ㒘
᱂䗮⫼᠋ᓣϟᠻ㸠
⡍ᴗ⫼᠋ᓣ enable ੑҸ
router#
gᠻ㸠 disable ੑҸ䗔ಲ ࠄ᱂䗮⫼᠋ᓣ
g䜡㕂䏃⬅఼䖤㸠খ᭄ gᠻ㸠 configure ੑҸ䖯 ܹࠄܼሔ䜡㕂ᓣ
⡍ᴗ⫼᠋ᓣϟᠻ㸠 ܼሔ䜡㕂ᓣ configure ੑҸˈৠᯊᣛᅮ router(config)#
Ⳍᑨⱘ݇䬂ᄫ
݀䩹䜡㕂ᓣ
㗙 addressed-key ੑҸ
router(config-pubkeykey)#
䖯ܹ䆹ᓣˈৠᯊࠊᅮⳌ
ᑨⱘ݇䬂ᄫখ᭄
g䖤㸠 exit ੑҸ䗔ಲࠄ config-pubkey-chain g䜡㕂݀݅ᆚ䩹 ᓣ
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
umber])#
䆹ᓣϟ䜡㕂䏃⬅఼
gᠻ㸠 exit ੑҸ䗔ಲࠄ ষˈࣙᣀ˖
ܼሔ䜡㕂ᓣ
gᠻ㸠 end ੑҸ䗔ಲࠄ ⡍ᴗ⫼᠋ᓣ
g䜡㕂 Ethernet ষ; g䜡㕂serial interface;
g䜡㕂 ISDN ষ
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
g䇁䷇ষ䜡㕂ᓣ gᢼোッ䜡㕂ᓣ
crypto
crypto map
gࡴᆚবᤶ䜡㕂ᓣ gࡴᆚᇘ䜡㕂ᓣ
crypto crypto
kiesyakpmupbk·eyI-EK
ㄪ⬹䜡㕂ᓣ
chain rsa
g ݀䩹㋏߫䜡㕂ᓣ
named-key㗙
addressed-key g݀䩹䜡㕂ᓣ
ip dhcp pool ·DHCP 䜡㕂ᓣ
䗮䖛 Console ষ䖲㒜ッ䜡㕂䏃⬅఼ˈ䳔㽕ҹϟϾℹ偸˖ 1ǃ䗝ᢽϔৄ㒜ッ 㒜ッ᮶ৃҹᰃᷛⱘޚ᳝ RS-232 Іষⱘ㒜ッˈгৃҹᰃϔৄ᱂䗮ⱘ PC ᴎˈᐌ⫼ⱘᰃৢ㗙DŽབᵰ㽕 Ң䖰ッ䜡㕂ˈ߭䖬䳔ϸৄ MODEMDŽ 2ǃ⹂䅸䏃⬅఼㒜ッ݊Ё㟇ᇥ᳝ϔᮍᰃ݇ᴎⱘᚙމϟˈ䗮䖛䜡㕂⬉㓚ᇚ㒜ッⱘ RS-232 ІষϢ䏃⬅ ఼ Console ষⳌ䖲DŽ㒓݇㋏བ 1-2 ᠔冫˖
݇䬂ᄫখ᭄
݀䩹㋏߫䜡㕂 ᓣ
ܼሔ䜡㕂ᓣϟˈ䗮䖛 crypto key pubkey-chain rsa ੑҸ䖯ܹ䆹ᓣ
router(config-pubkey-c hain)#
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
g䜡㕂Փ⫼ RSA ݀䩹
config-pubkey-chain
ᓣϟˈ䗮䖛 named-key
冫⫼᠋ᔧࠡ᠔໘ⱘ㋏㒳ᓣDŽ䖭ѯᓣߚ߿ᰃ˖ l ᱂䗮⫼᠋ᓣ˄user EXEC˅ l ⡍ᴗ⫼᠋ᓣ˄privileged EXEC˅ l ܼሔ䜡㕂ᓣ˄global configuration˅ l ষ䜡㕂ᓣ˄interface configuration˅ l 䏃⬅䜡㕂ᓣ˄router configuration˅ l ᭛ӊ㋏㒳ᓣ˄file system configuration˅ l 䆓䯂߫㸼䜡㕂ᓣ˄access list configuration˅ l 䇁䷇ষ䜡㕂ᓣ˄voice-port configuration˅ l ᢼোッ䜡㕂ᓣ˄dial-peer configuration˅ l ࡴᆚবᤶ䜡㕂ᓣ˄crypto transform-set configuration˅ l ࡴᆚᇘ䜡㕂ᓣ˄crypto map configuration˅ l IKE ㄪ⬹䜡㕂ᓣ˄isakmp configuration˅ l ݀䩹㋏߫䜡㕂ᓣ˄pubkey-chain configuration˅ l ݀䩹䜡㕂ᓣ˄pubkey-key configuration˅ l DHCP 䜡㕂ᓣ˄dhcp configuration˅
݊Ё᳔ৢϔ辵䜡㕂ᮍᓣᦤկЁ㣅᭛ⱘ⫼᠋⬠䴶ˈЏ㽕⫼Ѣ⫼᠋ⲥ㔥㒰ⱘᎹ⢊ᗕঞᬊ䲚㋏㒳㒳䅵ֵ ᙃDŽ
ᴀ⫼᠋ݠЏ㽕ᦣ䗄䗮䖛 console ষ䜡㕂䏃⬅఼ⱘᮍ⊩ˈ䗮䖛 56/336modem ഫ LINE ষǃTelnet 䖰 ⱏᔩ䜡㕂䏃⬅఼ⱘᮍ⊩ϢП㉏Ԑˈ䗮䖛 SNMP 㔥ㅵ㋏㒳ᇍ䏃⬅఼䖯㸠䜡㕂ⱘ㒚㡖䆺㾕䏃⬅఼㔥ㅵ㋏㒳䇈ᯢ кDŽ
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
g䜡㕂䇁䷇ষ
ᓣˈৠᯊࠊᅮⳌᑨⱘখ᭄
ܼሔ䜡㕂ᓣϟˈ䗮䖛
ᢼোッ䜡㕂 dial-peer ੑҸ䖯ܹ䆹 router(config-dial-peer g䖤㸠 exit ੑҸ䗔ಲࠄ g䜡㕂 VoIP
ᓣ
ᓣˈৠᯊࠊᅮⳌᑨⱘ݇䬂 )#
ܼሔ䜡㕂ᓣ
g䜡㕂 POTS
ᄫখ᭄
ωயუᄵ༉؟ಾोއಓ໒ԅd
g᱂䗮⫼᠋ᓣ enable g⡍ᴗ⫼᠋ᓣ
filesystem g᭛ӊ㋏㒳ᓣ
configure gܼሔ䜡㕂ᓣ
interface gষ䜡㕂ᓣ router *** g䏃⬅䜡㕂ᓣ ip access-listg䆓䯂߫㸼䜡㕂ᓣ
voice-port dial-peer
gᠻ㸠 exit ੑҸ䗔ಲࠄ 䆹ᓣϟ䜡㕂 IP 䏃⬅ण 䆂ˈࣙᣀ˖
ܼሔ䜡㕂ᓣ g䴭ᗕ䏃⬅
gᠻ㸠 end ੑҸ䗔ಲࠄ ·RIP ࡼᗕ䏃⬅ ⡍ᴗ⫼᠋ᓣ
·IRMP 䜡㕂ᓣ
gᅠ៤䏃⬅఼ⱘ᭛ӊ㋏㒳 gᠻ㸠 exit ੑҸ䗔ಲࠄ ⱘㅵ⧚˗ ⡍ᴗ⫼᠋ᓣ
gछ㑻䏃⬅఼䕃ӊDŽ
ܼሔ䜡㕂ᓣϟˈ䗮䖛
䆓䯂߫㸼䜡㕂 ip access-list ੑҸ䖯ܹ䆹 router(config-std-nacl)#
5
1-4 䗝ᢽІ㸠䗮ֵষ
þ 䜡㕂І㸠䗮ֵষখ᭄˄ 1-5˅ ⊶⡍⥛üü9600bps ᭄ԡüü8 ԡ ༛ي᷵偠üü᮴ ذℶԡüü1 ԡ ⌕üüXon/Xoff
1-5 䜡㕂І㸠䗮ֵষখ᭄
þ 㒭䏃⬅఼Ϟ⬉ˈ䏃⬅఼ਃࡼⱘֵᙃӮ㒜ッϞᰒ冫DŽਃࡼᅠ៤ৢӮᰒ冫˖ĀPress any key to start the shell!ā DŽབᵰ䜡㕂њⱏᔩ䳔㽕䅸䆕ˈ߭䕧ܹ⫼᠋ৡᆚⷕˈ৺߭ᣝӏᛣ䬂ⳈⱏᔩDŽⱏᔩ៤ࡳৢ Ӯ㒜ッϞᰒ冫Ārouter>āᦤ冫ヺ˗ህৃҹᇍ䏃⬅఼䖯㸠䜡㕂њDŽ
ϔゴ ㋏㒳⸔
ᴀゴЏ㽕䆆䗄䖜᱂䏃⬅఼Ё InfoExpress IOS ㋏㒳ⱘᴀⶹ䆚ˈࣙᣀ InfoExpress ㋏㒳ᓣǃ䜡㕂⦃๗ ⱘޚঞੑҸ㸠ষⱘ᳝݇ⶹ䆚ㄝDŽ
ᴀゴЏ㽕ݙᆍ˖ l 䏃⬅఼䜡㕂ᮍᓣ l ੑҸ䖤㸠ᓣ l ᨁᓎ䜡㕂⦃๗ l ੑҸ㸠ষ
1.1 䏃⬅఼䜡㕂ᮍᓣ
䖜᱂䏃⬅఼Ў⫼᠋ᦤկњಯ辵ൟⱘ䜡㕂ᮍᓣˈߚ߿ᰃ˖ l 䗮䖛 console ষˈ䞛⫼ shell ੑҸ䖯㸠䜡㕂 l 䗮䖛 56/336modem ഫ LINE ষ䖯㸠䜡㕂 l 䗮䖛 Telnet 䖰ⱏᔩࠄ䏃⬅఼Ϟ䜡㕂 l 䗮䖛 SNMP 㔥ㅵ㋏㒳ᇍ䏃⬅఼䖯㸠䜡㕂
1-2 ᴀഄ䜡㕂䏃⬅఼䖲
3ǃ㒭㒜ッϞ⬉ˈ䆒㕂㒜ッ䗮ֵখ᭄Ў⊶⡍⥛ 9600bpsǃ8 ԡ᭄ԡǃ1 ԡذℶԡǃ᮴᷵偠䕃⌕ˈ ᑊ䗝ᢽ㒜ッ㉏ൟЎ VT100DŽབᵰᰃ PC ᴎˈ䖤㸠 Win95/98/2000/NT ᪡㋏㒳ˈ߭䖤㸠 HyperTerminal˄䍙 㑻㒜ッ˅ᑣˈᑊᣝ✻ҹϞখ᭄䆒㕂䍙㑻㒜ッᑣⱘІষখ᭄DŽϟ䴶ҹ Windows NT ⱘ㒜ッ䍙㑻㒜ッᑣ Ў՟冫䇈ᯢ˖
1.2 ੑҸ䖤㸠ᓣ
䖜᱂䏃⬅఼ InfoExpress IOS Ў㋏㒳ੑҸⱘㅵ⧚ঞᠻ㸠ϧ䮼ᦤկњϔϾੑҸ໘⧚ᄤ㋏㒳ˈ鹵ПЎ shellˈ ݊Џ㽕ࡳ㛑ࣙᣀ˖
l ㋏㒳ੑҸⱘ⊼ݠ l ㋏㒳䜡㕂ੑҸⱘ⫼᠋㓪䕥 l ⫼᠋䕧ܹੑҸ˄䗮䖛 Console ষ Telnet 䖲˅ⱘ䇁⊩ߚᵤ l ㋏㒳ੑҸⱘᠻ㸠 ⫼᠋䗮䖛 shell ੑҸ䜡㕂䏃⬅఼ᯊˈ㋏㒳ЎੑҸⱘᠻ㸠ᦤկњ辵䖤㸠ᓣˈ↣辵ੑҸᓣߚ߿ᬃᣕ⡍
gᠻ㸠 exit ੑҸ䗔ಲࠄ
⡍ᴗ⫼᠋ᓣϟ˗
g䜡㕂䏃⬅఼䖤㸠᠔䳔ⱘ
gᠻ㸠 interface ੑҸ䖯 ܼሔখ᭄
ܹষ䜡㕂ᓣ
router(config-if-xxx[nu
ܼሔᓣϟᠻ㸠
mber])#
ষ䜡㕂ᓣ interface ੑҸ˄ৠᯊᣛᅮ 㗙
Ⳍᑨⱘষ㗙ষ㒘˅ router(config-ifgroup[n
ᓣ
ᓣˈৠᯊࠊᅮⳌᑨⱘ݇ #
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
g䜡㕂ࡴᆚᇘᴵⳂ
䬂ᄫখ᭄
ܼሔ䜡㕂ᓣϟˈ䗮䖛
IKE ㄪ⬹䜡㕂 ᓣ
crypto isakmp ੑҸ䖯ܹ 䆹ᓣৠᯊࠊᅮⳌᑨⱘ
g䖤㸠 exit ੑҸ䗔ಲࠄ router(config-isakmp)#
ܼሔ䜡㕂ᓣ
g䜡㕂 IKE ㄪ⬹
ᓣ
ᓣˈৠᯊࠊᅮⳌᑨⱘ݇ router(config-ext-nacl)#
䬂ᄫখ᭄
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
䜡㕂䰆☿䆓䯂߫㸼ˈ݊ ӏࡵࣙᣀ˖ g䜡㕂ᷛޚ䆓䯂߫㸼 g䜡㕂ᠽሩ䆓䯂߫㸼
ܼሔ䜡㕂ᓣϟˈ䗮䖛
䇁䷇ষ䜡㕂 ᓣБайду номын сангаас
voice-port ੑҸ䖯ܹ䆹
router(config-voice-po rt)#
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
6
1.3.2 䗮䖛 56/336modem ഫ LINE ষ䖯㸠䜡㕂
བᵰ䏃⬅఼䜡㕂њ 56/336modem ഫˈৃҹ߽⫼ഫϞⱘ DIP ᢼⷕᓔ݇ᴹ䆒㕂 LINE ষⱘᎹᓣˈ
þ ߯ᓎ䖲˄ 1-3˅ Ў䖲฿ݭৡ鹵̣̣mp2600˄ৃҹᰃ݊ᅗӏᛣৡ鹵˅ˈᑊЎ᠔ᓎ䖲䗝ᢽϔϾ Windows ᷛDŽ
þ 䗝ᢽІ㸠䗮ֵষ˄ 1-4˅
1-3 ߯ᓎ䖲
ḍ᠔䖲ⱘІ㸠ষˈৃҹ䗝ᢽ COM1 COM2DŽ
䖜᱂䗮ֵ⠜ᴗ᠔᳝ 㗏ॄᖙお Copyright © 2005 Maipu CommunicationˈAll Rights Reserved.
3
ܼሔ䜡㕂ᓣϟˈ䗮䖛
DHCP 䜡㕂 router(config)#ip dhcp
ᓣ
pool ੑҸ䖯ܹ䆹ᓣˈ router(dhcp-config)#
ৠᯊࠊᅮⳌᑨⱘখ᭄
g䖤㸠 exit ੑҸ䗔ಲࠄ ܼሔ䜡㕂ᓣ
g䜡㕂 DHCP
&⊼˖ router ಾಁѻЬನ௬ಘԅຂහыēဈྻࢶܜၽ௦ࡥଅᄢ੦ຏၮ hostname গ༉؟ຂහыē