Servers in Small Site Multi Homing

Transcription

Servers in Small Site Multi Homing






Server$ ipconfig
Windows IP Configuration
Ethernet adapter Loopback_2:
Connection-specific DNS Suffix
. :
IP Address. . . . . . . . . . . . : 10.0.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
Ethernet adapter Loopback_1:
Connection-specific DNS Suffix
. :
IP Address. . . . . . . . . . . . : 10.0.1.1
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
Ethernet adapter LAB:
Connection-specific DNS Suffix
. :
IP Address. . . . . . . . . . . . : 10.0.0.10
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.1
Server$ netstat -rn
Route Table
=======================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...02 00 4c 4f 4f 50 ...... Microsoft Loopback Adapter #2
0x3 ...02 00 4c 4f 4f 50 ...... Microsoft Loopback Adapter
0x10006 ...00 0c 29 a4 c7 ef ...... AMD PCNET Family PCI Ethernet Adapter Packet Scheduler Miniport
=======================================================================
Active Routes:
Network Destination
Netmask
Gateway
Interface
Metric
0.0.0.0
0.0.0.0
10.0.0.1
10.0.0.10
1
10.0.0.0
255.255.255.0
10.0.0.10
10.0.0.10
10
10.0.0.10
255.255.255.255
127.0.0.1
127.0.0.1
10
10.0.1.0
255.255.255.252
10.0.1.1
10.0.1.1
30
10.0.1.1
255.255.255.255
127.0.0.1
127.0.0.1
30
10.0.1.4
255.255.255.252
10.0.1.5
10.0.1.5
30
10.0.1.5
255.255.255.255
127.0.0.1
127.0.0.1
30
10.255.255.255
255.255.255.255
10.0.0.10
10.0.0.10
10
10.255.255.255
255.255.255.255
10.0.1.1
10.0.1.1
30
10.255.255.255
255.255.255.255
10.0.1.5
10.0.1.5
127.0.0.0
255.0.0.0
127.0.0.1
127.0.0.1
1
224.0.0.0
240.0.0.0
10.0.0.10
10.0.0.10
10
224.0.0.0
240.0.0.0
10.0.1.1
10.0.1.1
30
224.0.0.0
240.0.0.0
10.0.1.5
10.0.1.5
30
255.255.255.255
255.255.255.255
10.0.0.10
10.0.0.10
1
255.255.255.255
255.255.255.255
10.0.1.1
10.0.1.1
1
255.255.255.255
255.255.255.255
10.0.1.5
10.0.1.5
1
Default Gateway:
30
10.0.0.1
=======================================================================
Persistent Routes:
None
ip route 10.0.1.0 255.255.255.248 10.0.0.10
!
ip nat inside source static tcp 10.0.1.1 80 interface Serial0/1/0 80
ip nat inside source static tcp 10.0.1.5 80 interface Serial0/2/0 80
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip policy route-map LocalPolicy
!
ip access-list extended From_10.0.1.1
permit ip host 10.0.1.1 any
ip access-list extended From_10.0.1.5
permit ip host 10.0.1.5 any
!
route-map LocalPolicy permit 10
match ip address From_10.0.1.1
set interface Serial0/1/0 Null0
!
route-map LocalPolicy permit 30
match ip address From_10.0.1.5
set interface Serial0/2/0 Null0
@
IN
SOA
example.com.
test.example.com. (
2008050501; serial number YYMMDDNN
28800
; Refresh
7200
; Retry
864000
; Expire
86400
; Min TTL
)
NSns.my-primary-isp.invalid.
NSns.my-backup-isp.invalid.
$ORIGIN example.com.
MXmail-gw-1.example.com.
MXmail-gw-2.example.com.
mail-gw-1A192.168.2.1
mail-gw-2A172.16.1.1
@
IN
SOA
example.com.
test.example.com. (
2008050501; serial number
28800
; Refresh
7200
; Retry
864000
; Expire
86400
; Min TTL
)
NSns.primary-isp.invalid.
$ORIGIN example.com.
wwwNSwww-ns1
NSwww-ns2
www-ns1A192.168.2.1
www-ns2A172.16.1.1
ip dns view Primary
ip dns view Secondary
!
ip dns view-list Primary
view Primary 1
ip dns view-list Secondary
view Secondary 1
!
ip host view Primary www.example.com 192.168.1.2
ip host view Secondary www.example.com 172.16.1.1
ip dns server
!
interface Serial0/1/0
description *** Primary link ***
ip address 192.168.2.1 255.255.255.248
ip dns view-group Primary
ip nat outside
!
interface Serial0/2/0
description *** Backup link ***
ip address 172.16.1.1 255.255.255.252
ip dns view-group Secondary
ip nat outside
; <<>> DiG 9.4.1 <<>> www.example.com.
;; global options:
printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1837
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;www.example.com.
;; ANSWER SECTION:
IN
A
www.example.com.
10
IN
A
192.168.1.2
www.example.com.
86400
IN
NS
www-ns2.example.com.
www.example.com.
86400
IN
NS
www-ns1.example.com.
www-ns1.example.com.
86400
IN
A
192.168.2.1
www-ns2.example.com.
86400
IN
A
172.16.1.1
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 60 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 06 10:05:45 2008
;; MSG SIZE




rcvd: 125












Similar documents