image.png


要求:确保每个终端都可以访问www.ntd1711.com(192.168.30.88)

思路及步骤:

               1.配置sw3,创建vlan10 20  将1和2端口分别加入各自vlan,13和22端口配置为

                    trunk模式:

                              spacer.gifimage.png

               2.配置sw4,创建vlan10 将3端口加入vlan10.14和22端口配置为trunk模式

                              spacer.gifimage.png

               3.配置sw5,创建vlan40 将4,5,6端口加入vlan40  10端口配置为trunk模式

                              spacer.gifimage.png

               4.配置sw1,创建vlan10 20 30 ,将12 13 14端口配置为trunk模式

                    1和2 加入vlan30

                              image.png    spacer.gif

                    配置vlan10 ip:192.168.10.254 255.255.255.0

                          vlan20 ip:192.168.20.254 255.255.255.0

                         vlan30 ip:192.168.30.2 255.255.255.0

                               image.png    spacer.gif

               5.配置sw2,创建vlan30 40  将10 12端口配置为trunk模式

                               image.png   spacer.gif

                     配置vlan30 ip:192.168.30.254 255.255.255.0

                            vlan40 ip:192.168.40.254 255.255.255.0

                            image.png

                                   spacer.gif

               6.配置sw1  rip

                         rip

                         version 2

                         network 192.168.10.0

                         network 192.168.20.0

                         network 192.168.30.0

                       image.png

                              spacer.gif

               7.配置sw2 rip

                         rip

                         version 2

                         network 192.168.30.0

                         network 192.168.40.0

                         spacer.gifimage.png

               8.配置dns服务器:

                    主机域名:www.ntd1711.com

                               ip: 192.168.30.88  

                             image.png  spacer.gif  

                    本机ip:192.168.30.1 255.255.255.0

                    网关:192.168.30.254

                         spacer.gifimage.png

               9.配置http服务器:

                    配置文件根目录:

                         spacer.gifimage.png

                    本机ip:192.168.30.88 255.255.255.0

                    网关:192.168.30.254

                                    image.png    spacer.gif

               10.配置client

                    ip 192.168.40.3 255.255.255.0

                    网关:192.168.40.254

                    域名服务器:192.168.30.1

                    spacer.gifimage.png

               验证,查看:

                         spacer.gifimage.png