GNS3模拟一个中小型企业网络(有详细配置)

更新时间:2023-11-27 00:52:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

GNS3使用的是dinamips,没有交换机的IOS,本实验中,模拟二、三层交换机都是使用C3640+NM-16ESW模块。 注意:

1、如果只是模拟二层交换机,一定要记住

SW1(config)#no ip routing // 关闭路由功能 2、无法设置IP问题

端口设置IP出现这个错误

% IP addresses may not be configured on L2 links. 需要从二层交换端口切换到三层交换端口 SW2(config-if)#no switchport

这里设置IP主要是连接路由器,但我遇到过用这个命令居然会提示命令不完整 SW2(config-if)#no switchport % Incomplete command.

我测试后,原来是我用的IOS版本低了,换成124版本的就没有这个问题了。 用到的IOS下载地址:

c3640-ik9o3s-mz.124-13b 点击下载 c7200-jk9o3s-mz.124-17 点击下载

网络拓扑:

设计的总公司还有两个出口:电信(R_Tele)和联通(R_Uni),一个驻外办事处(R_Part)。

电信(R_Tele),提供外网连接,实现nat转换和流量控制 联通(R_Uni)实现与驻外办事处(R_Part)VPN连接。 汇聚层(L3Switch)实现DHCP。

详细配置:

核心交换机Core_A: version 12.4

service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption !

hostname Core_A !

boot-start-marker boot-end-marker ! !

no aaa new-model memory-size iomem 5 ! ! ip cef

no ip domain lookup ip domain name lab.local

interface Loopback0

ip address 5.5.5.5 255.255.255.0 !

interface Port-channel1 !

interface FastEthernet0/0 no switchport

ip address 172.16.59.1 255.255.255.0 !

interface FastEthernet0/1 no switchport

ip address 172.16.55.2 255.255.255.0 !

interface FastEthernet0/2 no switchport

ip address 172.16.58.2 255.255.255.0 !

interface FastEthernet0/3 no switchport

ip address 172.16.61.1 255.255.255.0 !

interface FastEthernet0/4

no switchport

ip address 172.16.63.1 255.255.255.0 !

interface FastEthernet0/5 no switchport

ip address 172.16.53.2 255.255.255.0 !

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 Vlan1 no ip address shutdown !

interface Vlan101

ip address 172.16.200.1 255.255.255.0 !

router ospf 100

log-adjacency-changes

network 172.16.53.0 0.0.0.255 area 0 network 172.16.55.0 0.0.0.255 area 0 network 172.16.58.0 0.0.0.255 area 0 network 172.16.59.0 0.0.0.255 area 0 network 172.16.61.0 0.0.0.255 area 0 network 172.16.63.0 0.0.0.255 area 0 network 172.16.200.0 0.0.0.255 area 0 !

no ip http server

no ip http secure-server !

ip route 0.0.0.0 0.0.0.0 172.16.61.2 ip route 0.0.0.0 0.0.0.0 172.16.63.2 115 ! !

control-plane ! !

line con 0

exec-timeout 0 0 privilege level 15 logging synchronous line aux 0

exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end

核心交换机Core_B: version 12.4

service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption !

hostname Core_B !

boot-start-marker boot-end-marker ! !

no aaa new-model memory-size iomem 5 ! ! ip cef

no ip domain lookup

ip domain name lab.local ! ! !

interface Loopback0

ip address 4.4.4.4 255.255.255.0 !

interface FastEthernet0/0 no switchport

ip address 172.16.59.2 255.255.255.0 !

interface FastEthernet0/1 no switchport

ip address 172.16.56.2 255.255.255.0 !

interface FastEthernet0/2 no switchport

ip address 172.16.57.2 255.255.255.0 !

interface FastEthernet0/3 no switchport

ip address 172.16.60.1 255.255.255.0 !

interface FastEthernet0/4 no switchport

ip address 172.16.64.1 255.255.255.0 !

interface FastEthernet0/5 no switchport

ip address 172.16.54.2 255.255.255.0 !

interface FastEthernet0/6 !

interface FastEthernet0/7 !

interface FastEthernet0/8 !

interface FastEthernet0/9 !

interface FastEthernet0/10 !

interface FastEthernet0/11 !

interface FastEthernet0/12

本文来源:https://www.bwwdw.com/article/89qt.html

Top