思科路由器2600如何连接!

发布网友 发布时间:2022-04-23 11:07

我来回答

5个回答

热心网友 时间:2023-10-12 01:08

连接计算机和路由器,以及路由器和*接口,应注意级联线和直通线的用法。
首先确定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
plex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
plex auto
speed auto
!
interface Ethernet1/0
no ip address 注意每次查看的这些不同之处
ip broadcast-address 0.0.0.0
shutdown
half-plex
!
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~ 这里
plex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat outside ------->注意~0~ 这里
plex auto
speed auto
!
interface Ethernet1/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
half-plex
!
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 <ip><mask>{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
plex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat inside
plex auto
speed auto
!
interface Ethernet1/0
no ip address
ip broadcast-address 0.0.0.0
shutdown
half-plex
!
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

热心网友 时间:2023-10-12 01:08

有钱人,思科都买了 看不懂下面的就找专业网络公司人员花钱几百大洋调吧,那个路由要用命令的,

既然是学习线面的你应该能看懂自己摸索吧
单臂路由

二层交换机
添加三个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做地址映射

热心网友 时间:2023-10-12 01:08

- - 买路由器干什么,“猫”就是一个“路由器”你们应该买一个交换机~~~

热心网友 时间:2023-10-12 01:09

太牛*了,寝室里用思科2600,佩服啊!
思科2600是专业路由器,不同于家用路由器,它没有WEB管理界面,初次使用需要用专用的console线缆连接,通过命令行进行配置,如果你们当中没有技术牛人,建议换成普通的家用路由器吧,太折腾了

热心网友 时间:2023-10-12 01:10

这个要用思科专门的命令的。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com