IP 1)주소체계
2)최적경로 (IP라우팅)
ICMP internet control message protocol (ping)
IGMP internet group messagement protocol (multicast)
ARP address resolution protocol (ip - mac)
tcp 2^16 (0~65535)
udp 2^16 (0~65535)
0~1023 : well known port (관리자 서비스 포트)
1024~49151, 49152~65535 : 학술용 (클라이언트 포트)
tcp 분열 재조립 (pc상)
ip 분열 재조립 (network상)
bus topology - 끝단에 terminator가 있어야 신호가 죽는다
star...
ring...
baseband - digital (binary)
broadband - analog (frequency)
Hub = multiport repeater (flooding)
csma/ca - wireless
prom
netstat -i // 네트웤 카드의 통계 정보, netstat -ni // ip로 출력
banner
ifconfig -a // root만 mac정보 확인 가능, 일반 유저는 확인 안됨
eeprom local-mac-address?=true // system mac을 lan card mac으로 입력
ifconfig pcn0 ether xx:xx:xx:xx:xx:xx // 일회성으로 맥주소 변경
ethernet (digital, interl, xerox = dix)
↓
fast ethernet (ethernet II, dix 2.0)
snoop -v // 상세히
-V // 간단히
-o // output, 파일로 저장할 때
-i // input, 저장된 파일을 읽을 때
-a // audio, 패킷을 잡았을 때 소리나게 함
-s // 통계정보
ndd // 네트워크 파라메타값을 수정하는 명령
ndd (-get) /dev/pcn link_status
0 link disable
1 link enable
ndd (-get) /dev/hme link_speed
0 10M
1 100M
ndd -set /dev/hme link_speed 1 // 100M 변경
ndd /dev/hme link_speed // 확인
32bit ---> 48bit
ARP (ip -> mac)
48bit ---> 32bit
RARP (mac -> ip) // ipv6에서 필요없음
arp -a // arp cache table
-s // static
-f // cache table을 txt로 등록
rarp (fr망 - iarp)
ok boot net:rarp (반대에서는 arp데몬이 떠있어야함)
sol10 > svc -a | grep rarp
svc:/network/rarp
sol9 > /etc/rc3.d/s15nfs.server
sol10 > /etc/rc3.d/S16boot.server
/etc/inet/hosts => /etc/hosts
/etc/ethers => ip와 mac을 매핑
ping x.x.x.x
type 8 (echo request) <-> type 0 (echo reply)
code 0 <-> code 0
subnetting
a class - host : 1677777214
b class - host : 65534
c class - host : 254
서브넷을 하는 이유
1. collission이 발생하여 cpu 사용율 100%가 되어 사용할 수 가 없음
2. network bandwidth가 떨어짐
3. access control (security)
4. ip를 효율적으로 분배하기 위해
/etc/inet/netmask // 넷마스크 설정 파일
ifconfig pcn0 unplumb // 커널에서 pcn0 네트워크 인터페이스 분리 (윈도 장치관리자서 장치 삭제)
ifconfig pcn0 plumb // 커널에 pcn0 네트워크 인터페이스 로딩
ifconfig pcn0 192.168.102.100 netmask 255.255.255.0 broadcast 192.168.102.255 up
(= ifconfig pcn0 192.168.102.100 netmask 255.255.255.0 broadcast + up)
sub interface
ndd /dev/ip ip_addrs_per_if // 가상 인터페이스 추가
ksh -o vi
http://www.solarisschool.com/