大家好,今天小编关注到一个比较有意思的话题,就是关于内网电脑搭建网站的问题,于是小编就整理了4个相关介绍内网电脑搭建网站的解答,让我们一起看看吧。
怎么才能将几台电脑连成一个局域网?
交换机共享上网 1、买以太5口或8口交换机2、X条直通线(线序两头一样) 。
3、从猫出来的宽带信号直通双绞线水晶头,插入交换机一个端口,X台电脑分别用直通双绞线与交换机的端口相连。
4、设置协议TCP/IP属性。
(1)本地连接 右击本地连接—属性—常规—协议(TCP/IP)--属性—使用下面的IP地址A电脑:IP地 址:192.168.0. 2 (这是我使用的)子网掩码:255.255.255.
0 默认网关:192.168.0.1 B电脑:IP地 址:192.168.0. 3(2—254之间除2以外的数)
子网掩码:255.255.255.
0 默认网关:192.168.0.1 D……(2)宽带连接右击宽带连接—属性—网络--协议(TCP/IP)--属性—使用下面的IP地址--X台电脑均设为“自动获得IP地址”。5、X台电脑用一个用户名和密码,分别建立宽带拨号上网。
6、这样X台电脑可以同时上网,也可以单独上网。如果想互联共享文件,要建立局域网,设置共享。
机床和电脑怎么组建局域网?
其实很简单
电脑的网络连接 点网上邻居属性 本地连接属性 双击 Internet协议 (TCP/IP)
点选使用下面的IP地址
机器的IP地址 只要在一段内 例如他的是 192.168.1.1 你设置成和他的不一样就成 192.168.1.2就可以!
使用同一种小区宽带网。怎么建立个局域网?
要看接入方式。电话线接入的应该不行;以太网接入的可以,同一个小区都是通过交换机汇聚的,相当于一个局域网,只要将ip设好(最好是设置成宽带商dhcp分配的那个网段ip,这样不引响上网)
大概有10台电脑,怎么组建小型公司局域网?
买台24口交换机,买10台电脑,电脑设好IP ,掩码,没有网关。组好了。
可简陋,可复杂。
防火墙,网关,交换机,冗余,VLAN ,acl 都整上,也算一个局域网。
客户需求:
1. 公司有6个部门,高管部门、设计部、财务部、生产部、采购部、其他部门。
2. 公司有4台服务器:财务服务器、生产ERP服务器、文件存储服务器、web服务器。
3. 各部门之间可以互相通信。
4. 高管部门可以访问所有公司服务器,可以访问互联网资源。
5. 设计部门可以访问文件服务器、web服务器,可以访问互联网。
6. 财务部可以访问财务服务器、文件服务器、web服务器,可以访问互联网资源。
7. 生产部可以访问ERP服务器、文件服务器、web服务器,不能访问互联网。
8. 采购部可以访问文件服务器、web服务器,可以访问互联网资源。
9. 其他部门可以访问文件服务器、web服务器,不可以访问互联网。
10. 财务服务器、生产ERP服务器、文件存储服务器不能访问外网。
11. 外网可以通过http://202.101.100.3:8080,访问web服务器。
12. 公司从电信服务商购买202.101.100.0/29固定IP,可用固定公网IP为:202.101.100.2-202.101.100.6
13. ISP和公司连接的网关接口为202.101.100.1/29
网络设备拓扑图
设计概述:
1. 用两台二层交换机做汇聚和冗余备份及负载分担,并且:
192.168.200.0/24,192.168.4.0/24,192.168.1.0/24,192.168.255.0/24的流量优先从交换机SW-FR1-CVG走;
192.168.2.0/24,192.168.3.0/24,192.168.5.0/24,192.168.6.0/24的流量优先从交换机SW-FR1-CVG-BACK走。
2. 交换机SW-FR1、SW-FR2、SW-FR3分布在办公楼的1、2、3层,连接各楼层PC。
3. 按部门划分VLAN:高管部门属于vlan10、设计部属于vlan20、财务部属于vlan30、生产部属于vlan40、采购部属于vlan50、其他部门都划到vlan60、服务器属于vlan200、网络设备的管理vlan设为255。各交换机的telnet密码:123456
4. 路由器RT-GW fa0/0口起子接口做单臂路由,管理各vlan之间通信。
5. 路由器RT-GW fa0/0.200 接口挂ACL out,控制PC对服务器的流量。
6. 路由器RT-GW s1/0接口分配一个固定ip,起PPP协议,与服务商的网关用pap认证连接。用户名:ISP 密码:123456
7. 路由器RT-GW 做NAT,支持局域网中PC访问互联网。
8. 路由器RT-GW做静态NAT,实现广域网通过http://202.101.100.3:8080访问web服务器。
仓促而就,其中肯定有很多错误,再检查太麻烦了。就这样吧。
网络设备配置:(懒得整理了,都直接复制过来就得了。)
SW-FR1#sh run
Building configuration...
Current configuration : 2305 bytes
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW-FR1
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ip routing
no ip icmp rate-limit unreachable
!
no ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
interface Ethernet0/0
switchport access vlan 200
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/1
switchport access vlan 200
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/2
switchport access vlan 200
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/3
switchport access vlan 200
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/0
switchport access vlan 40
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/1
switchport access vlan 40
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/2
switchport access vlan 40
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/3
switchport access vlan 40
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/0
duplex auto
!
interface Ethernet2/1
duplex auto
!
interface Ethernet2/2
duplex auto
!
interface Ethernet2/3
duplex auto
!
interface Ethernet3/0
duplex auto
!
interface Ethernet3/1
duplex auto
!
interface Ethernet3/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan255
ip address 192.168.255.3 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.255.254
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123456
login
transport input all
!
End
===========================================================
SW-FR2#sh run
Building configuration...
Current configuration : 2246 bytes
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW-FR2
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
interface Ethernet0/0
switchport access vlan 20
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/1
switchport access vlan 20
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/2
switchport access vlan 20
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/3
switchport access vlan 20
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/0
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/1
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/2
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/3
switchport access vlan 10
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/0
duplex auto
!
interface Ethernet2/1
duplex auto
!
interface Ethernet2/2
duplex auto
!
interface Ethernet2/3
duplex auto
!
interface Ethernet3/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/2
duplex auto
!
interface Ethernet3/3
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan255
ip address 192.168.255.4 255.255.255.0
!
ip default-gateway 192.168.255.254
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123456
login
transport input all
!
End
=========================================================
SW-FR3#sh run
Building configuration...
Current configuration : 2566 bytes
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW-FR3
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
interface Ethernet0/0
switchport access vlan 50
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/1
switchport access vlan 50
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/2
switchport access vlan 50
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet0/3
switchport access vlan 50
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/0
switchport access vlan 30
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/1
switchport access vlan 30
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/2
switchport access vlan 30
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet1/3
switchport access vlan 30
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/0
switchport access vlan 60
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/1
switchport access vlan 60
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/2
switchport access vlan 60
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet2/3
switchport access vlan 60
switchport mode access
duplex auto
spanning-tree portfast edge
!
interface Ethernet3/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/2
duplex auto
!
interface Ethernet3/3
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan255
ip address 192.168.255.5 255.255.255.0
!
ip default-gateway 192.168.255.254
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123456
login
transport input all
!
End
==========================================================
SW-FR1-CVG#sh run
Building configuration...
Current configuration : 1887 bytes
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW-FR1-CVG
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,40,200,255 priority 24576
spanning-tree vlan 20,30,50,60 priority 28672
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
interface Ethernet0/0
duplex auto
!
interface Ethernet0/1
duplex auto
!
interface Ethernet0/2
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Ethernet1/0
duplex auto
!
interface Ethernet1/1
duplex auto
!
interface Ethernet1/2
duplex auto
!
interface Ethernet1/3
duplex auto
!
interface Ethernet2/0
duplex auto
!
interface Ethernet2/1
duplex auto
!
interface Ethernet2/2
duplex auto
!
interface Ethernet2/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan255
ip address 192.168.255.1 255.255.255.0
!
ip default-gateway 192.168.255.254
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123456
login
transport input all
!
End
===========================================================
SW-FR1-CVG-BACK#sh run
Building configuration...
Current configuration : 1831 bytes
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW-FR1-CVG-BACK
!
boot-start-marker
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain-lookup
!
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,40,200,255 priority 28672
spanning-tree vlan 20,30,50,60 priority 24576
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
interface Ethernet0/0
duplex auto
!
interface Ethernet0/1
duplex auto
!
interface Ethernet0/2
duplex auto
!
interface Ethernet0/3
duplex auto
!
interface Ethernet1/0
duplex auto
!
interface Ethernet1/1
duplex auto
!
interface Ethernet1/2
duplex auto
!
interface Ethernet1/3
duplex auto
!
interface Ethernet2/0
duplex auto
!
interface Ethernet2/1
duplex auto
!
interface Ethernet2/2
duplex auto
!
interface Ethernet2/3
duplex auto
!
interface Ethernet3/0
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Ethernet3/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan255
ip address 192.168.255.2 255.255.255.0
!
ip default-gateway 192.168.255.254
!
ip forward-protocol nd
no ip http server
!
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 123456
login
transport input all
!
End
==========================================================
RT-GW#sh run
Building configuration...
Current configuration : 2941 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RT-GW
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.2.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.3.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 192.168.4.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.50
encapsulation dot1Q 50
ip address 192.168.5.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.60
encapsulation dot1Q 60
ip address 192.168.6.254 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.200
encapsulation dot1Q 200
ip address 192.168.200.254 255.255.255.0
ip access-group ACL-2SERVER out
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.255
encapsulation dot1Q 255
ip address 192.168.255.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 202.101.100.2 255.255.255.248
ip nat outside
ip virtual-reassembly
encapsulation ppp
serial restart-delay 0
clock rate 64000
ppp pap sent-username ISP password 0 123456
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
!
no ip http server
no ip http secure-server
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Serial1/0
!
!
ip nat inside source list ACL-NAT-1 interface Serial1/0 overload
ip nat inside source static tcp 192.168.200.4 80 202.101.100.3 8080 extendable
!
!
ip access-list extended ACL-2SERVER
permit ip 192.168.1.0 0.0.0.255 192.168.200.0 0.0.0.255
permit ip any host 192.168.200.3
permit ip 192.168.3.0 0.0.0.255 host 192.168.200.1
permit ip 192.168.4.0 0.0.0.255 host 192.168.200.2
permit ip any host 192.168.200.4
ip access-list extended ACL-NAT-1
permit ip 192.168.1.0 0.0.0.255 any
permit ip 192.168.2.0 0.0.0.255 any
permit ip 192.168.3.0 0.0.0.255 any
permit ip 192.168.5.0 0.0.0.255 any
access-list 1 permit any
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
no login
!
!
End
===========================================================
组建网络首先要明白需求。比如预算,带宽,数量,扩展性,有无自己的内部服务器等。已知该公司有10台电脑。并且不需要有自己的内部服务器,对未来扩展性也要求一般。
首先要确定一个中心点这个中心点一般摆放路由器,交换机这样的设备。确定好这个位置后之后再确定各个电脑和中心点之间的距离和走向我们这里假设10台电脑都在一个办公室内。最近的电脑距离交换机5米,最远距离交换机有20米,故我们需要大约150米的的超5类网线,每根网线有两个水晶头。再加上损耗,大约需要25个左右的水晶头。
每一个电脑需要连接交换机的一个端口,所以我们需要至少大于10个端口的交换机,已知目前交换机有8口16口32口48口,故我们可以选择16口交换机。为了保证内网速度和稳定性我们可以选择企业级16口的千兆交换机。
之后是网络的逻辑部分,我们需要规划连接网络所需要的ip地址和子网掩码,由于只有10台电脑,我们采用C类地址192.168.1.0/24。该地址段可以容纳255个设备!其中192.168.1.0是网端号192.168.1.255是广播号不能分配给设备使用,可用的IP地址是192.168.1.1~192.168.1.254,子网掩码是255.255.255.0。其中192.168.1.254保留给网关。
我们的硬件需求有
- 企业级16口千兆交换机一台。
- 机柜(选购,用来放置交换机等,如果为了节省预算如果为了节省预算,十人的局域网可以暂时不用机柜)
- 路由器(选购,用来连接外网+IP地址分配)
- 超五类网线一百五十米
- 水晶头二十五个
- 制作水晶头的网线钳一把。
- 线槽7根,塑料,胀管螺丝若干。
首先从交换机处根据规划好的线路铺设线槽并给每一台电脑都布设网线。之后制作水晶头并连接电脑和交换机,这样局域网硬件就敷设完毕后。
如果网络中没有路由器,需要手动为各个电脑分配IP地址,从192.168.1.1~192.168.1.253!为了可以使各个电脑能自动获得IP地址,减少工作量和IP地址冲突的可能,建议增加一台带有dhcp功能的路由器。把路由器的管理IP地址更改为192.168.1.254,并把路由器的dhcp地址池更改为192.168.1.1~192.168.1.253,由路由器进行IP地址的自动分配。
所有工作做完以后,局域网就可以正常工作了。在没有外网的情况下可以进行类似文件,打印机共享等内网办公操作!
两种方案,一种直接用无线wifi,好处是免去布线的烦恼。买好一点的路由器(华为就不错)和无线Wifi接收器,交换机都免了。坏处是没有线稳定。(可以写几路由器和wifi接收器的优缺点)。另一种就是有线了,有线与无线的区别是多了个交换机和网线,少了Wifi接收器。好处是网速稳定,坏处是布线麻烦。(可以写几种交换机的优缺点)。最主要还是深入写这两种方案的优缺点。其实叫我写我也不会写[呲牙]
到此,以上就是小编对于内网电脑搭建网站的问题就介绍到这了,希望介绍关于内网电脑搭建网站的4点解答对大家有用。
还没有评论,来说两句吧...