Sie sind auf Seite 1von 4

R1

enable
conf t
hostname R1
line console 0
exec-timeout 0
interface serial 0/0
ip add 200.20.30.1 255.255.255.0
no shut
interface fast 1/0
ip add 192.168.10.17 255.255.255.252
no shut
interface fast 0/1
ip add 192.168.10.21 255.255.255.252
no shut
interface fast 0/0
ip add 192.168.10.1 255.255.255.248
no shut
interface loo 0
ip add 1.1.1.1 255.255.255.0
no shut
ip route 2.2.2.2 255.255.255.255 200.20.30.2

*****************bgp********************************
router bgp 65001
neig 2.2.2.2 remote-as 65002
network 1.1.1.1
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
************************NAT**********************

ip nat pool cisco 192.168.1.0 192.168.1.255 netmask 255.255.255.0


access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 pool cisco
int serial 0/0
ip nat outside
interface fast 0/0
ip nat inside
***************************ospf***********************************
router ospf 100
network 192.168.10.0 255.255.255.0 area 0

R2
enable
conf t
hostname R2
line console 0
exec-timeout 0
interface serial 0/0
ip add 200.20.30.2 255.255.255.0
no shut
interface loo 0
ip add 2.2.2.2 255.255.255.0
router bgp 65002
network 0.0.0.0
neighbor 1.1.1.1 remote-as 65001
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback0

R3
enable
conf t
hostname R3
line console 0
exec-timeout 0
int fast 1/0
ip add 192.168.10.18 255.255.255.252
no shut
int fast 0/1
ip add 192.168.10.26 255.255.255.252
no shut
int fast 0/0
ip add 192.168.10.9 255.255.255.248
no shut

router ospf 100


network 192.168.10.0 255.255.255.0 area 0

---------------------------------------------------------------

SWdls1
enable
conf t
hostname SWdls1
line console 0
exec-timeout 0

interface fast 0/0


ip add 192.168.10.2 255.255.255.248
no shut
interface fast 0/1
ip add 192.168.10.25 255.255.255.252
no shut

router ospf 100


network 192.168.10.0 255.255.255.0 area 0
interface Port-channel1
switchport mode trunk
inter range fas 1/0 - 1
switch mode trunk
channel-group mode on
------------------------------------------------------------swdls2
enable
conf t
hostname swdls2

interface fast 0/0


ip add 192.168.10.10 255.255.255.248
no shut
interface fast 0/1
ip add 192.168.10.22 255.255.255.252
no shut

router ospf 100


network 192.168.10.0 255.255.255.0 area 0
interfa range fast 1/0 -1

----------------------------------------------------------------als1
enable
conf t
hostname als1
line console 0
exec-timeout 0

Das könnte Ihnen auch gefallen