R1#show run
Building configuration...
crypto_cs_config: stub.
Current configuration : 1658 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
no ip dhcp use vrf connected
!
!
ip cef
!
!
call rsvp-sync
no scripting tcl init
no scripting tcl encdir
!
!
!
!
!
!
!
no file verify auto
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
description Connecting to R2(S1/0)
ip address 192.168.0.1 255.255.255.252
ip ospf network point-to-point
serial restart-delay 0
!
interface Serial1/1
description Connecting to R3(S1/1)
ip address 192.168.0.10 255.255.255.252
ip ospf network point-to-point
serial restart-delay 0
!
interface Serial1/2
description Connecting to R4(S1/0)
ip address 192.168.0.13 255.255.255.252
ip ospf network point-to-point
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
!
router ospf 10
router-id 1.1.1.1
log-adjacency-changes
area 10 stub no-summary
network 1.1.1.1 0.0.0.0 area 0
network 192.168.0.0 0.0.0.3 area 0
network 192.168.0.8 0.0.0.3 area 0
network 192.168.0.12 0.0.0.3 area 10
!
ip classless
!
no ip http server
!
!
!
!
!
!
!
!
!
!
!
!
!
control-plane
!
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
end
R1#show ip protocols
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 1.1.1.1
It is an area border router
Number of areas in this router is 2. 1 normal 1 stub 0 nssa
Maximum path: 4
Routing for Networks:
1.1.1.1 0.0.0.0 area 0
192.168.0.0 0.0.0.3 area 0
192.168.0.8 0.0.0.3 area 0
192.168.0.12 0.0.0.3 area 10
Routing Information Sources:
Gateway Distance Last Update
4.4.4.4 110 00:13:22
3.3.3.3 110 00:11:23
2.2.2.2 110 00:07:12
( Distance: (default is 110
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 192.168.0.2, 00:14:28, Serial1/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 192.168.0.9, 00:14:28, Serial1/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/65] via 192.168.0.14, 00:13:25, Serial1/2
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/129] via 192.168.0.9, 00:11:26, Serial1/1
6.0.0.0/32 is subnetted, 1 subnets
O IA 6.6.6.6 [110/129] via 192.168.0.2, 00:07:15, Serial1/0
10.0.0.0/32 is subnetted, 3 subnets
O IA 10.10.5.1 [110/129] via 192.168.0.9, 00:11:26, Serial1/1
O 10.10.4.1 [110/65] via 192.168.0.14, 00:13:25, Serial1/2
O IA 10.10.6.1 [110/129] via 192.168.0.2, 00:07:15, Serial1/0
192.168.0.0/30 is subnetted, 6 subnets
C 192.168.0.8 is directly connected, Serial1/1
C 192.168.0.12 is directly connected, Serial1/2
C 192.168.0.0 is directly connected, Serial1/0
O 192.168.0.4 [110/128] via 192.168.0.9, 00:14:28, Serial1/1
[110/128] via 192.168.0.2, 00:14:28, Serial1/0
O IA 192.168.0.16 [110/128] via 192.168.0.9, 00:13:25, Serial1/1
O IA 192.168.0.20 [110/128] via 192.168.0.2, 00:13:25, Serial1/0
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ - 00:00:30 192.168.0.9 Serial1/1
2.2.2.2 0 FULL/ - 00:00:39 192.168.0.2 Serial1/0
4.4.4.4 0 FULL/ - 00:00:30 192.168.0.14 Serial1/2
R1#sho ip ospf da
OSPF Router with ID (1.1.1.1) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 904 0x80000006 0x004AD1 5
2.2.2.2 2.2.2.2 924 0x80000006 0x009487 5
3.3.3.3 3.3.3.3 887 0x80000006 0x006998 5
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
4.4.4.4 1.1.1.1 818 0x80000001 0x003FA8
5.5.5.5 3.3.3.3 700 0x80000001 0x00D407
6.6.6.6 2.2.2.2 449 0x80000001 0x00C417
10.10.4.1 1.1.1.1 818 0x80000001 0x00C618
10.10.5.1 3.3.3.3 700 0x80000001 0x007F56
10.10.6.1 2.2.2.2 449 0x80000001 0x009246
192.168.0.12 1.1.1.1 1395 0x80000001 0x00B1D4
192.168.0.16 3.3.3.3 1082 0x80000001 0x004D2D
192.168.0.20 2.2.2.2 1284 0x80000001 0x004337
Router Link States (Area 10)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 833 0x80000002 0x00BEE4 2
4.4.4.4 4.4.4.4 833 0x80000004 0x002E1C 4
Summary Net Link States (Area 10)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 1.1.1.1 1391 0x80000001 0x0093A6
R1#
R4#show run
Building configuration...
crypto_cs_config: stub.
Current configuration : 1550 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
no ip dhcp use vrf connected
!
!
ip cef
!
!
call rsvp-sync
no scripting tcl init
no scripting tcl encdir
!
!
!
!
!
!
!
no file verify auto
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback4
ip address 10.10.4.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
description Connecting to R1(S1/2)
ip address 192.168.0.14 255.255.255.252
ip ospf network point-to-point
no fair-queue
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
!
router ospf 10
router-id 4.4.4.4
log-adjacency-changes
area 10 stub
network 4.4.4.4 0.0.0.0 area 10
network 10.10.4.0 0.0.0.255 area 10
network 192.168.0.12 0.0.0.3 area 10
!
ip classless
!
no ip http server
!
!
!
!
!
!
!
!
!
!
!
!
!
control-plane
!
!
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
!
end
R4#show ip protocols
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 4.4.4.4
Number of areas in this router is 1. 0 normal 1 stub 0 nssa
Maximum path: 4
Routing for Networks:
4.4.4.4 0.0.0.0 area 10
10.10.4.0 0.0.0.255 area 10
192.168.0.12 0.0.0.3 area 10
Routing Information Sources:
Gateway Distance Last Update
1.1.1.1 110 00:17:43
Distance: (default is 110)
R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 192.168.0.13 to network 0.0.0.0
4.0.0.0/32 is subnetted, 1 subnets
C 4.4.4.4 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.4.0 is directly connected, Loopback4
192.168.0.0/30 is subnetted, 1 subnets
C 192.168.0.12 is directly connected, Serial1/0
O*IA 0.0.0.0/0 [110/65] via 192.168.0.13, 00:17:45, Serial1/0
R4#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/ - 00:00:38 192.168.0.13 Serial1/0
R4#show ip ospf database
OSPF Router with ID (4.4.4.4) (Process ID 10)
Router Link States (Area 10)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1087 0x80000002 0x00BEE4 2
4.4.4.4 4.4.4.4 1086 0x80000004 0x002E1C 4
Summary Net Link States (Area 10)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 1.1.1.1 1644 0x80000001 0x0093A6
R4#
ضمنا امیر اصغری به عنوان نویسنده جدید به گروه Tellnet پیوست.
A Canadian firm unveiled what it called "the world's first commercially viable quantum computer." D-Wave Systems, Inc., "The Quantum Computing Company," during a much ballyhooed rollout at the Computer History Museum in Mountain View, Calif., hailed the new device as a big step toward the age of quantum computing, decades earlier than scheduled.

But experts say the announcement may be a bit—er—premature. Even if the computer were to work as advertised, it still would be nearly 1,000 times too small to solve problems that stump ordinary computers. Moreover, researchers do not know whether it will work at bigger sizes.

تصویر بزرگتر
قسمت اول : راه اندازی IPTABLES برای PAT
یکی دو ماه پیش مطلبی در خصوص PAT و NAT در روترهای Cisco داشتیم و ادبیات هر دو را به تفضیل و با مثال و Sample Configuration توضیح دادیم ، اگر در مفاهیم PAT و NAT سئوالی دارید ، لطفا به مطالب قبلی (در همین صفحه و یا در آرشیو ماهیانه) مراجعه فرمایید.
در این مثال لینوکس در لبه شبکه قرار دارد و می خواهد از طریق iptables برای شبکه داخل شرکت PAT کند. لطفا به نکات زیر توجه فرمایید :
برای این کار کافی است iptables را start کنید :
|
etc/init.d/iptables start |
|
iptables -t nat -A POSTROTING -o eth1 -j MASQUERADE |
با این کار عملا iptables می گوید هر ترافیکی که خواست از اینترفیس eth1 خارج شود را ابتدا IP آن را به IP اینترفیس eth1 ترجمه کن و با عملیات PAT ارسال کن.
در قسمت دوم نحوه Server Publishing را در ادامه همین سناریو توضیح خواهم داد.
نظرات شما برای ما مهم و جهت دهنده است ، لطفا در مورد تاپیک ها ما را از نظرات خود محروم نفرمایید.
موفق و پیروز باشید.
EIGRP Sample Configuration
|
R1#sh cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port ID R1#sh ip eigrp neighbors R1#show running-config Current configuration : 1064 bytes R1#show ip route R1#sh ip eigrp topology Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, P 192.168.100.0/24, 2 successors, FD is 2323456 |
R6#sh cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port ID R6#sh ip eigrp neighbors Current configuration : 995 bytes R6#sh ip route Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, P 192.168.100.0/24, 1 successors, FD is 409600
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
R2 Eth 0/0 152 R 3620 Eth 1/1
R3 Eth 0/0 155 R 3620 Eth 1/0
R5 Eth 0/0 164 R 3620 Eth 0/0
IP-EIGRP neighbors for process 10
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
2 192.168.0.18 Et0/0 14 00:17:00 1611 5000 0 97
1 192.168.0.17 Et0/0 11 00:17:03 309 1854 0 125
0 192.168.0.19 Et0/0 14 00:17:03 344 2064 0 48
R6#show running-config
Building configuration...
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R6
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$xsGB$dkMQKY8KaMbviu.rR6sju.
!
no aaa new-model
ip subnet-zero
!
ip cef
!
username admin password 7 094D4A04100B
!
interface Loopback101
ip address 192.168.101.1 255.255.255.0
!
interface Loopback102
ip address 192.168.102.1 255.255.255.0
!
interface Ethernet0/0
ip address 192.168.0.20 255.255.255.248
half-duplex
!
interface Ethernet0/1
no ip address
shutdown
half-duplex
!
interface Ethernet0/2
no ip address
shutdown
half-duplex
!
interface Ethernet0/3
no ip address
shutdown
half-duplex
!
router eigrp 10
network 192.168.0.16 0.0.0.7
network 192.168.101.0
network 192.168.102.0
no auto-summary
!
ip http server
ip classless
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
exec-timeout 0 0
login local
!
end
D 192.168.90.0/24 [90/409600] via 192.168.0.19, 00:18:55, Ethernet0/0
D 192.168.30.0/24 [90/409600] via 192.168.0.17, 00:18:55, Ethernet0/0
D 192.168.60.0/24 [90/409600] via 192.168.0.18, 00:18:53, Ethernet0/0
D 192.168.10.0/24 [90/2323456] via 192.168.0.17, 00:18:53, Ethernet0/0
[90/2323456] via 192.168.0.18, 00:18:53, Ethernet0/0
D 192.168.40.0/24 [90/409600] via 192.168.0.17, 00:18:55, Ethernet0/0
D 192.168.80.0/24 [90/435200] via 192.168.0.17, 00:18:55, Ethernet0/0
D 192.168.20.0/24 [90/2323456] via 192.168.0.17, 00:18:53, Ethernet0/0
[90/2323456] via 192.168.0.18, 00:18:53, Ethernet0/0
192.168.0.0/24 is variably subnetted, 4 subnets, 2 masks
D 192.168.0.8/29 [90/307200] via 192.168.0.17, 00:18:55, Ethernet0/0
D 192.168.0.0/30 [90/2195456] via 192.168.0.17, 00:18:55, Ethernet0/0
D 192.168.0.4/30 [90/2195456] via 192.168.0.18, 00:18:53, Ethernet0/0
C 192.168.0.16/29 is directly connected, Ethernet0/0
C 192.168.102.0/24 is directly connected, Loopback102
D 192.168.50.0/24 [90/409600] via 192.168.0.18, 00:18:54, Ethernet0/0
D 192.168.70.0/24 [90/435200] via 192.168.0.17, 00:18:56, Ethernet0/0
D 192.168.100.0/24 [90/409600] via 192.168.0.19, 00:18:56, Ethernet0/0
C 192.168.101.0/24 is directly connected, Loopback101
R6#sh ip eigrp topology
IP-EIGRP Topology Table for AS(10)/ID(192.168.102.1)
r - reply Status, s - sia Status
via 192.168.0.19 (409600/128256), Ethernet0/0
P 192.168.101.0/24, 1 successors, FD is 128256
via Connected, Loopback101
P 192.168.102.0/24, 1 successors, FD is 128256
via Connected, Loopback102
P 192.168.70.0/24, 1 successors, FD is 435200
via 192.168.0.17 (435200/409600), Ethernet0/0
P 192.168.90.0/24, 1 successors, FD is 409600
via 192.168.0.19 (409600/128256), Ethernet0/0
P 192.168.80.0/24, 1 successors, FD is 435200
via 192.168.0.17 (435200/409600), Ethernet0/0
P 192.168.40.0/24, 1 successors, FD is 409600
via 192.168.0.17 (409600/128256), Ethernet0/0
P 192.168.60.0/24, 1 successors, FD is 409600
via 192.168.0.18 (409600/128256), Ethernet0/0
P 192.168.50.0/24, 1 successors, FD is 409600
via 192.168.0.18 (409600/128256), Ethernet0/0
P 192.168.0.8/29, 1 successors, FD is 307200
via 192.168.0.17 (307200/281600), Ethernet0/0
P 192.168.10.0/24, 2 successors, FD is 2323456
via 192.168.0.18 (2323456/2297856), Ethernet0/0
via 192.168.0.17 (2323456/2297856), Ethernet0/0
P 192.168.0.0/30, 1 successors, FD is 2195456
via 192.168.0.17 (2195456/2169856), Ethernet0/0
P 192.168.0.4/30, 1 successors, FD is 2195456
via 192.168.0.18 (2195456/2169856), Ethernet0/0
P 192.168.30.0/24, 1 successors, FD is 409600
via 192.168.0.17 (409600/128256), Ethernet0/0
P 192.168.0.16/29, 1 successors, FD is 281600
via Connected, Ethernet0/0
P 192.168.20.0/24, 2 successors, FD is 2323456
via 192.168.0.18 (2323456/2297856), Ethernet0/0
via 192.168.0.17 (2323456/2297856), Ethernet0/0

MPLS Sample Configuration
دوستان گرامی ، اگر این نوع تاپیک ها برای شما مفید است ، لطفا در بخش نظرات حتما مطرح بفرمایید.
|
R4 Running configuration: service timestamps debug datetime msec R$#show mpls forwarding-table R4#sh mpls ldp bindings R4#show mpls interfaces R4#show mpls ldp neighbor R4#show ip route Gateway of last resort is not set 192.168.30.0/32 is subnetted, 1 subnets |