标签:linux 网络工程
路由器配置命令:
Router(config)#interface gi0/0 // 财务部网关接口;
Router(config-if)# no shutdown
Router(config-if)# ip address 192.168.1.254 255.255.255.0
Router(config-if)#descriptionGW-CaiWu
Router(config)#interface gi0/0 // 门诊部网关接口;
Router(config-if)# no shutdown
Router(config-if)# ip address 192.168.2.254 255.255.255.0
Router(config-if)#descriptionGW-MenZhen
Router(config)#interface gi0/0 // 药房网关接口;
Router(config-if)# no shutdown
Router(config-if)# ip address 192.168.3.254 255.255.255.0
Router(config-if)#descriptionGW-YaoFang
该项目出于成本控制方面的考虑,建议节省3台服务器,将
交换机作为 DHCP server :
财务部配置命令:
SW1(config)#interface vlan 1
SW1(config-if)#no shutdown
SW1(config-if)#ip address 192.168.1.250 255.255.255.0
SW1(config)# ip dhcp pool CaiWu
SW1(dhcp-config)# network 192.168.1.0 255.255.255.0
SW1(dhcp-config)# default-router 192.168.1.254
SW1(dhcp-config)# dns-server 8.8.8.8
SW1(dhcp-config)# exit
SW1(config)# service dhcp
门诊部配置命令
SW2(config)#interface vlan 1
SW2(config-if)#no shutdown
SW2(config-if)#ip address 192.168.2.250 255.255.255.0
SW2(config)# ip dhcp pool MenZhen
SW2(dhcp-config)# network 192.168.2.0 255.255.255.0
SW2(dhcp-config)# default-router 192.168.2.254
SW2(dhcp-config)# dns-server 7.7.7.7
SW2(dhcp-config)# exit
SW2(config)# service dhcp
药方配置命令
SW3(config)#interface vlan 1
SW3(config-if)#no shutdown
SW3(config-if)#ip address 192.168.3.250 255.255.255.0
SW3(config)# ip dhcp pool MenZhen
SW3(dhcp-config)# network 192.168.3.0 255.255.255.0
SW3(dhcp-config)# default-router 192.168.3.254
SW3(dhcp-config)# dns-server 9.9.9.9
SW3(dhcp-config)# exit
SW3(config)# service dhcp
标签:linux 网络工程
原文地址:http://13400429.blog.51cto.com/13390429/1972221