《ROS配置IP网卡信息.docx》由会员分享,可在线阅读,更多相关《ROS配置IP网卡信息.docx(5页珍藏版)》请在第壹文秘上搜索。
1、ROS配置IP网卡信息ROS配置IP网卡信息1 .查看配置网卡输入/interface可以简写为int进入网卡配置项再输入pri,查看网卡配置admin11ikroTikintEadmin11ikroTikzinterfaceFlags:D-dynamic,-disabled,R-running,S-slaueItNANETYPEMTULZMTU0RIanether15001Ranlether1500admin11IkrUTik,默认的网卡名都是etherl,ether2这样类似的,上面的是我修改过网卡名的修改网卡名的吩咐为:interfacesetnumname=newname比如我想修改序
2、列号为0的网卡名为内网Ian可以这样:set0name=Ian2 .添加IP地址输入吩咐:ipaddress或简写为ipadd接着输入:addIan输入pri,可以查看添加结果,如下图:admin11:kroTikztoolipaddIadmin11ikroTikzipFlags:X-disabled,address:一,:I-inualidlD-dynamicttADDRESSNETUORKBROADCASTINTERFACE019Z.168.1.1zZ4192.168.1.019Z.168.1.Z55Ian1192.168.1.Zz24192.168.1.019Z.168.1.255anl
3、2192.168.2.2z3219Z.168.Z.019Z.168.1.255wantadmin11ikroTikzipadminMikroTik/ipFlags:X-disabled,addressaddress19Z.168.0.1Z4interface-lanaddressI-inualid,D-dynamicnADDRESSNETUORKBROADCASTINTERFACE0192.168.1.1/24192.168.1.019Z.168.1.255Ian1192.168.1.2/24192.168.1.019Z.168.1.255anlZ192.168.2.2/32192.168.Z
4、.019Z.168.1.255wanl3192.168.0.1/24a(QkJ,192.168.0.0lress_19Z.168.0.Z55Ian删除IP地址可以用interfaceremovenum吩咐,如图:Iadnmy11kroTkJzipaddress?Flags:X-disabled,I-invalid,D-dynamicttADDRESSNETUORKBROADCASTImterface0192.168.1.1z24192.168.1.019Z.168.1.255Ian119Z.168.1.ZzZ419Z.168.1.019Z.168.1.255anlZ13Z.168.Z.Zz32
5、192.168.Z.0192.168.1.255anl3192.168.0.1,24CadninikroTikzipadmin(?MikroTikzip(ddminQ11ikroTikzip192.168.0.0addressaddressaddress192.168.0.255Ianbadconnandnamerent(Iine1colunnadminMikroTikzipaddress1adminOMikroTikzipaddressZadminMikroTikzipaddress1)Flags:X-disabled,I-inualid,D-dynamicttADDRESSNETUORKB
6、ROADCASTINTERFACE0192.168.0.1Z4(adminQMikroTikzip192.168.0.0address192.168.0.255Ian另外,可以输入?可以得到当前项的帮助信息。在另台机上ping192.168.0.1-t,在2个网卡里分别插上网线试下,看那个能ping通,以推断2个网卡那个是内网网卡Ian,确定后就可以用:/192.168.0.1访问了,当然本机IP地址也要同网段才行,如下图:工件9编辑血哥9收藏Q)工Ha)帮助Qi)后退.4闾;/面收藏夹廖I址)|第http:/192.168.0.1/n三Q转到webbox 3.30 login:WebboxT
7、his is a web based configuration interface for RouterOS. Log in above to connect to this router - some of the most important RouterOS features can be ntrolled within this interface.WinboxWinbox is the graphicalconfiguration application for RouterOS. DO京Ioad it, run it and connect to your router - al
8、l RouterOS functionality can be controlled with this application.COnneCt h telnet and you will have access to the command line interface of RouterOS, every function of RouterOS can be controlled with it.TelnetraohsMikroTikTheSeQraDhSshowyoustatisticalinformationaboutyourroutersinterfacesandthetraffi
9、cthatgoesthroughthem.BeforeyouuseGraphs,YoiJh%vetothem.如图箭头部分,下载winbox,我们就可以告辞字符界面了,输入默认账号admin,空密码如下图:ra Hi.点击ConneCt连接,如下图:&dminei92.168.1.1(MikroTik)-WinBoxv3.30onx6(x6)InterfacesWirelessBridg。MeshPPPIPIPv6RoutineSystemQueuesFiles1.OgRadiusToolsNewTerminalISDHChaxmelsMkSxipoutrifManualExit另外,值得留意
10、的是winbox支持MAC登陆,当没有IP地址或配置防火墙参数无法连接时,通过路由器网卡MAC地址登陆的方式远程连接到路由器,只支持一级路由器,并且网卡应当被启用。如下图:adnin00:0C:29:F8:lD:50 (MikroTik) - WinBox v3.30 on x86 &86)InterfacesYirassBridgeIPv6RoutingSystemQueuesMInterface ListInterface Ethernet EoIP Tunnel IP Turmel VLAN VRRP BondingFilesRadiusToolsHew TerminalISDH ChannelsMk Supout. ri fHanual3 items修改密码可以用/password或简写为/passadmin0MikroTikpassoldpassword:newpassword:*retypenewpassword:*admn0MkroTik吩咐行改网卡mac:1./interfaceethernetsetLANmac-address=aa:bb:cc:dd:ee:ff