1、DNS是用来把网址解析到公网IP地址的,如果你有一个网站的话,首先要去申请一个网站域名比如www.xx.com,然后解析到您网站服务器所在网络的公网地址,然后你把网站服务器挂在公网上或者nat映射到公网上就可以了
2、所有配置如下
拓扑图如下
Router0
cisco0(config)#do sh run
Building configuration...
Current configuration : 797 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cisco0
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
username cisco password 0 cisco
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 172.16.3.1 255.255.255.0
!
interface Serial0/0/1
no ip address
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 10.0.0.0
network 172.16.0.0
network 192.168.1.0
no auto-summary
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Router1
cisco1(config)#do sh run
Building configuration...
Current configuration : 797 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cisco1
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
username cisco password 0 cisco
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 192.168.3.254 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 172.16.3.2 255.255.255.0
clock rate 64000
!
interface Serial0/0/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 172.16.0.0
network 192.168.3.0
no auto-summary
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Router2
cisco2(config)#do sh run
Building configuration...
Current configuration : 677 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname cisco2
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
username cisco password 0 cisco
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 10.0.0.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.2.254 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 10.0.0.0
network 192.168.2.0
no auto-summary
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
PC0配置
PC1配置
DNS配置
PC0到PC1测试
PC0-DNS
1、DNS是用来提供域名解析服务的,主要将域名解析为IP地址返还给请求者。至少需要一个公网IP地址,申请一个域名,然后定向到自己的公网IP地址,搭建WEB服务器。
2、路由器命名:(config)#hostname CISCO
端口设地址:(config)#int f0/0 (config-if)#ip address 192.168.1.1 255.255.255.0
password:(config)#enable password
secret: (config)#enable secret
3、配置好所有的接口地址,配置好所有的PC和服务器的IP,PC和服务器上设置相应的网关
3台路由器配置好相应的路由建议使用动态路由,既能实现全网的互联
九州软件是用于在不同网络环境下快速切换IP地址等网络配置的软件工具。
提供换ip功能,包含静态线路和动态线路选择
覆盖全国70多个省500多个城市千万ip地址随意选择
静态ip.动态ip地址可长期使用
有pptp、L2tp,支持模拟器多窗口模式