longnguyen2512
13-11-2009, 10:09 AM
chào các bác!
cấu hình bài hôm trước e bị mất !
nên e làm lại như sau
http://i303.photobucket.com/albums/nn129/longnguyen2512a/untitled-6.jpg
từ r0 e ping tới int f0/0 của r1 có ip 192.168.1.42 thì ok
nhưng e muốn ping tới c1 là máy thất có ip 192.168.1.33 getway trỏ vè router isp thì ko được ạh!
e cần làm gì đễ ping tới c1 và ra net được ạh!
cấu hình r1 nhu sau
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 15
no aaa new-model
ip subnet-zero
ip cef
!
!
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.42 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.1.2 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
!
ip http server
ip classless
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
tren r0 như sau
!
hostname r0
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 15
no aaa new-model
ip subnet-zero
ip cef
!
!
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
ip address 20.0.0.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 20.0.0.0 0.0.0.255 area 1
network 172.16.1.0 0.0.0.255 area 1
!
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.1.2
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
mong các bác giúp đõ ạh
cấu hình bài hôm trước e bị mất !
nên e làm lại như sau
http://i303.photobucket.com/albums/nn129/longnguyen2512a/untitled-6.jpg
từ r0 e ping tới int f0/0 của r1 có ip 192.168.1.42 thì ok
nhưng e muốn ping tới c1 là máy thất có ip 192.168.1.33 getway trỏ vè router isp thì ko được ạh!
e cần làm gì đễ ping tới c1 và ra net được ạh!
cấu hình r1 nhu sau
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 15
no aaa new-model
ip subnet-zero
ip cef
!
!
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.42 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.1.2 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
!
ip http server
ip classless
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
tren r0 như sau
!
hostname r0
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 15
no aaa new-model
ip subnet-zero
ip cef
!
!
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
ip address 20.0.0.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 20.0.0.0 0.0.0.255 area 1
network 172.16.1.0 0.0.0.255 area 1
!
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.1.2
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
mong các bác giúp đõ ạh