设为首页收藏本站language 语言切换
查看: 1665|回复: 5
收起左侧

[求助] 计算子网掩码,求助(江湖救急)

[复制链接]
发表于 2013-9-2 19:19:52 | 显示全部楼层 |阅读模式
师兄给我出了一道题,明天最后期限要给出 正确答案 ,本人不敢确定自己的计算结果,求各位大神帮忙指点一下,多谢{:soso_e183:}{:soso_e183:}{:soso_e183:}{:soso_e183:}{:soso_e183:}


题目:
给了一组cisco 3560交换机的查看信息,请问:如果把插在思科3560交换机上的第24口的网线拔掉插到电脑上,电脑需要设置什么IP能够上网啊(主要是子网掩码是多少),主要问题是如何计算子网掩码?255.255.255.252是否可用?据说需要计算,请问如何计算啊?
3560#sh run
Building configuration...

Current configuration : 1932 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Henggang-3560
!
enable secret 5 $1$76ab$FyTaO4vb2iRoDp2ZTwZRf/
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
ip routing
no ip domain-lookup
ip dhcp excluded-address 19.110.250.190
!
ip dhcp pool henggang
   network 19.110.250.160 255.255.255.224
   dns-server 19.104.8.3 19.104.11.3
   default-router 19.110.250.190
   lease 7
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!         
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
no switchport
ip address 19.110.255.246 255.255.255.252
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 7 05380701074D400E3B0419
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 19.110.250.190 255.255.255.224
!
router ospf 100
log-adjacency-changes
network 19.110.250.190 0.0.0.0 area 101
network 19.110.255.246 0.0.0.0 area 101
!
ip classless
ip http server
!
!
snmp-server community dgsf RO
!
control-plane
!
!
line con 0
password 7 094F471A1A0A
logging synchronous
login
line vty 0 4
password 7 094F471A1A0A
logging synchronous
login
line vty 5 15
login
!
end

 楼主| 发表于 2013-9-3 01:31:34 | 显示全部楼层
求搭救
沙发 2013-9-3 01:31:34 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-9-3 01:35:34 | 显示全部楼层
跟你的网关在一个网段就行
板凳 2013-9-3 01:35:34 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-9-3 01:35:39 | 显示全部楼层
,可以的啊
地板 2013-9-3 01:35:39 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-9-3 13:30:17 | 显示全部楼层
本帖最后由 odeson 于 2013-9-3 13:34 编辑

3560上已经启用了DHCP,
ip dhcp excluded-address 19.110.250.190
!
ip dhcp pool henggang
   network 19.110.250.160 255.255.255.224
   dns-server 19.104.8.3 19.104.11.3
   default-router 19.110.250.190
   lease 7
这些配置就是DHCP的,所以如果将交换机上的网线直接连电脑,那么电脑的IP地址应该是在DHCP POOL中的范围,也就是
  network 19.110.250.160 255.255.255.224 的范围内。除去DHCPserver的。理论上是这样的,但是继续往下看,会发现
interface FastEthernet0/24
no switchport
ip address 19.110.255.246 255.255.255.252

这一段配置,也就是说fa 0/24 使用手工的方式又指定了一个IP地址ip address 19.110.255.246 255.255.255.252, 你电脑需要在这个网段内。


5# 2013-9-3 13:30:17 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-6 13:46:19 | 显示全部楼层
odeson 发表于 2013-9-3 13:30
3560上已经启用了DHCP,
ip dhcp excluded-address 19.110.250.190
!

多谢
6# 2013-9-6 13:46:19 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-11 16:50 , Processed in 0.158425 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表