永发信息网

思科路由器2600如何连接!

答案:5  悬赏:0  手机版
解决时间 2021-01-30 17:59
  • 提问者网友:書生途
  • 2021-01-30 00:01
思科路由器2600如何连接!
最佳答案
  • 五星知识达人网友:天凉才是好个秋
  • 2021-01-30 00:10
连接计算机和路由器,以及路由器和外网接口,应注意级联线和直通线的用法。
首先确定f0/0与f0/1哪个是外网接口 哪个是内网接口
基本路由器配置命令

1.配置f0/0和f0/1的ip地址
Router>en 进入
Password: 输入密码 输入后看不见
Router#config t 进入特权配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f0/0 进入f0/0接口
Router(config-if)#no shut 激活f0/0接口
Router(config-if)#ip address 172.16.0.246 255.255.255.0 配置IP地址
Router(config-if)#exit 退出
Router(config)#interface f0/1 进入f0/1接口
Router(config-if)#ip address 192.168.0.1 255.255.255.0 配置IP地址
Router(config-if)#no shut 激活f0/1接口
Router(config-if)#exit 退出
Router(config)#exit 退出
Router#
00:58:42: %SYS-5-CONFIG_I: Configured from console by console
Router#show run 查看运行状态
Building configuration...
==========================================================================
Current configuration : 850 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
logging console notifications
enable password cheng
!
ip subnet-zero
!
!
!
ip inspect audit-trail
ip audit notify log
ip audit po max-events 100
!
!
!
!
interface FastEthernet0/0 --------------------------------------
ip address 172.16.0.246 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface Ethernet1/0
no ip address 注意每次查看的这些不同之处
ip broadcast-address 0.0.0.0
shutdown
half-duplex
!
ip classless
ip http server
ip pim bidir-enable
!
logging facility local3
logging 172.18.1.3
tacacs-server host 172.18.1.2
!
line con 0
line aux 0
line vty 0 4
login
! -------------------------------------
end
========================================================

---------------------------------------------------------------------------------------------------------------
2,配置路由和配置NAT内外接口(此包含了NAT转换的一些内容)

Router# 输入的en和密码就省去了 ~_~
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 172.16.0.254 配置路由信息 (此是一条缺省路由)
Router(config)#interface f0/0 进入F0/0接口
Router(config-if)#ip nat inside 把F0/0设置为接入口(inside)
Router(config-if)#exit
Router(config)#interface f0/1 进入F0/1接口
Router(config-if)#ip nat outside 把F0/1设置为接出口
Router(config-if)#exit
Router(config)#exit
Router#sho -----------------你一定?呵呵这里你只要输入show run 不用管他 只要不输错 就会成功
01:21:25: %SYS-5-CONFIG_I: Configured from console by consolew run
Building configuration...
---------------------------------------------------------
Current configuration : 797 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
logging console notifications
enable password cheng
!
ip subnet-zero
!
!
!
ip inspect audit-trail
ip audit notify log
ip audit po max-events 100
!
!
!
interface FastEthernet0/0 --------------------------------------
ip address 172.16.0.246 255.255.255.0
ip nat inside ------->注意~0~ 这里
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat outside ------->注意~0~ 这里
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
half-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.0.254 ------->注意 这里是缺省路由
ip http server
ip pim bidir-enable
!
!
logging facility local3
logging 172.18.1.3
tacacs-server host 172.18.1.2
!
line con 0
line aux 0
line vty 0 4
login
! -------------------------------------------
end
========================================================

3,配置NAT 转换的重要一句静态路由:
ip route-static {interface number|nexthop}[value][reject|blackhole]

Router# 输入的en和密码就省去了 ~_~
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip nat inside source static 192.168.1.2 172.16.0.246 配置NAT地址的转换信息
Router(config)#exit
Router#show run 查看
01:21:25: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
---------------------------------------------------------
Current configuration : 797 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
logging console notifications
enable password cheng
!
ip subnet-zero
!
!
!
ip inspect audit-trail
ip audit notify log
ip audit po max-events 100
!
!
!
interface FastEthernet0/0
ip address 172.16.0.246 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
half-duplex
!
ip nat inside source static 192.168.1.2 172.16.0.246 ------------>配好了
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.0.254
ip http server
ip pim bidir-enable
!
logging facility local3
logging 172.18.1.3
tacacs-server host 172.18.1.2
!
line con 0
line aux 0
line vty 0 4
login
!
end
全部回答
  • 1楼网友:舍身薄凉客
  • 2021-01-30 03:24
- - 买路由器干什么,“猫”就是一个“路由器”你们应该买一个交换机~~~
  • 2楼网友:空山清雨
  • 2021-01-30 02:40
太牛逼了,寝室里用思科2600,佩服啊!
思科2600是专业路由器,不同于家用路由器,它没有WEB管理界面,初次使用需要用专用的console线缆连接,通过命令行进行配置,如果你们当中没有技术牛人,建议换成普通的家用路由器吧,太折腾了
  • 3楼网友:狂恋
  • 2021-01-30 01:47
有钱人,思科都买了 看不懂下面的就找专业网络公司人员花钱几百大洋调吧,那个路由要用命令的,
既然是学习线面的你应该能看懂自己摸索吧
单臂路由
二层交换机
添加三个vlan
enable
config t
vlan 1
name vlan1
vlan 2
name vlan2
vlan 3
name vlan3
根据需要划分交换机端口到自己的VLAN
把交换机连接路由的口设置为trunk
比如f0/1口
intface fast0/1
switch port mode trunk
switch trunk encapsulation dot1q 封装dot1q
路由设置
路由链接交换机的口不要配置协议
进入子接口
比如路由的口也是f0/1
int f0/1
no ip add
interface fast0/1.1
ip address 192.168.1.1 255.255.255.0
encapsulation dot1q 1
no sh
interface fast0/1.2
ip address 192.168.0.1 255.255.255.0
encapsulation dot1q 2
no sh
interface fast0/1.3
ip address 192.168.1.1 255.255.255.0
encapsulation dot1q 3
no sh
然后启用默认路由到公网
启用nat做地址转换 结合二楼的nat配置 和控制访问列表
把服务器192.168.18.251做地址映射
  • 4楼网友:过活
  • 2021-01-30 01:33
这个要用思科专门的命令的。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯