22 네트워크 패킷트레이서
write memory
#copy running-config startup-config
복사하다 라우터랜에있는 전원을 꺼도 사라지지않는 mvm에 저장한다
복사 ram 정보를 NVRAM에다가
server- config -ftp
파일이름. 패스워드 만들기
권한 만들기
라우터 R1에서
do show run
(config)# ip ftp username qwer
(config)# ip ftp password cisco
관리자로나가서
#copy running-config ftp 복사 ram정보를 ftp에다가
192.168.0.10 입력
R1-config
conf t
hosname R1
interface fa0/0
shutdown
no ip add
exit
copy ftp running-config
192.168.0.10
R1-config
en
conf t
r1(config)# username R1 password cisco
r2(config)# username R2 password cisco
R1
interface serial 0/0/0
encapsulation ppp 책 135쪽!
ppp authentication pap
ppp pap sent R2 pass cisco
R2
interface serial 0/0/0
encapsulation ppp
ppp authentication pap
ppp pap sent R1 pass cisco
show run 확인
R1#,R2#에서 show interface s0/0/0
-----------------------------------------------------
ospf!!!
동적방식 으로ip수집하지만
rip 는 주변에있는 라우터만 수집하고
링크스테이트는 라우터의 정보를 다알고있음
멀리있는라우터에도 트래픽이나 그런걸 계산을해서
네비게이션같이 실시간및 교통상황 이런식으로 해줌
디스턴스 방식은 주변에 알고있는사람만 알고있는데
링크스테이트 주변에 다알고있음
PC1 fa 0/1 IP 192.168.0.11/24
GW 192.168.0.1
PC2 fa 0/6 IP 192.168.0.22
GW 192.168.0.1
PC3 fa 0/11 IP 1912.168.0.33
GW 192.168.0.1
fa 0/6
fa 0/1
fa 0/11
R1
int s0/0/0
ip add 10.0.0.1 255.255.0.0
interface fa0/0
ip add 192.168.0.1 255.255.255.0
no shutdown
R2
int s0/0/0
ip add 10.0.0.2 255.255.0.0
interface fa0/0
ip add 172.16.0.1 255.255.0.0
no shutdown
R1
(config)# router [해당 프로토콜] 동적라우팅의 기본 접근방법
router ospf 7 router osfp 숫자
net 192.168.0.0 0.0.0.255 area 0 0.0.0.255 는 와일드마스크!!! 서브넷 마스크를 반전!!
net 10.0.0.0 0.0.255.255 area 0 area
R2
router ospf 7
net 10.0.0.0 0.0.255.255 area 0
net 172.16.0.10 0.0.255.255 area 0
ospf의 장점은 area 대규모
변화가 생길떄 바로전달하기떄문에 훨씬빠르다 rip에비해서도
rip의경우 홉카운트가 15로 제한되어있지만 ospf의 경우에는 그런제한이없다
R1
R1# show ip route 라우팅의 상태를 조회한다!!
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
10.0.0.0/16 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial0/0/0 10.0.0.0 이 직접적으로 시리얼 0/0/0이 연결되어있다
O 172.16.0.0/16 [110/65] via 10.0.0.2, 00:39:52, Serial0/0/0 via는 라우터의 정보를 통해서 172.16.0.0/16으로 갈수있다!
C 192.168.0.0/24 is directly connected, FastEthernet0/0 r1 연결을 직접적으로 가지고있고 fa0/0으로
----------------------------------------------------------
--------------------------------------------------------------------
ospf만든거에 Vlan trunk 넣고
area 0 area1지정하기 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00 0 ~ 63
01 64 ~ 127
10 128 ~ 191
11
vlan10 (product)
IP 192.168.0.2/26
255.255.255.192
GW 192.168.0.1
vlan20 (sales)
IP 192.168.0.66/26
255.255.255.192
GW 192.168.0.65
vlan30 (Development)
IP 192.168.0.130/26
255.255.255.192
GW 192.168.0.129
server
172.16.0.10
255.255.0.0
172.16.0.1
router R1 10.0.0.1 255.255.0.0
router R2 10.0.0.2 255.255.0.0
server
172.16.0.10
255.255.0.0
172.16.0.1
vlan 20(스위치)
ip 192.168.0.67/26
255.255.255.192
gw 192.168.0.65
s1에서
vlan 10
name product
vlan 20
name sales
vlan 30
name Development
interface range fa0/6-10
switchport mode access
interface range fa0/11-17
switchport mode access
interface range fa0/18-23
switchport mode access
interface fa0/6
switchport access vlan 10
interface fa0/11
switchport access vlan 20
interface fa0/18
switchport access vlan 30
interface fa0/24
switchport mode trunk
interface vlan 20
ip address 192.168.0.67 255.255.255.192
ip default-gateway 192.168.0.65
no shutdown
Trunck Mode = 포트가 하나밖에 없는데 네트워크 대역 사용 할 경우
R1
en
conf t
hostname R1
ip domain-lookup
interface fa0/0.10
encapsulation dot1q 10
ip add 192.168.0.1 255.255.255.192
interface fa0/0.20
encapsulation dot1q 20
ip add 192.168.0.65 255.255.255.192
interface fa0/0.30
encapsulation dot1q 30
ip add 192.168.0.129 255.255.255.192
no shutdown
R1
router ospf 7
network 192.168.0.1 0.0.0.63 area 0
network 192.168.0.65 0.0.0.63 area 0
network 192.168.0.129 0.0.0.63 area 0
net 10.0.0.0 0.0.255.255 area 0
R2
router ospf7
network 10.0.0.0 0.0.255.255 area 0
network 172.16.0.1 0.0.255.255 area 1
'네트워크 구축' 카테고리의 다른 글
네트워크 패킷트레이서,이론 (0) | 2020.11.30 |
---|---|
네트워크 (0) | 2020.11.30 |
네트워크 패킷트레이서 vlan (0) | 2020.11.30 |
네트워크 이론 웨이콘 설정 (0) | 2020.11.30 |
네트워크 이론 패킷트레이서 설치 (0) | 2020.11.30 |