'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글
장난감 아님! (0) | 2009.10.07 |
---|---|
파스도 상하나? (4) | 2009.09.07 |
쌍무지개! (6) | 2009.05.15 |
왕푸징(왕부정) 거리 지표 (0) | 2009.05.10 |
3박 4일 중국 가족여행 (8) | 2009.05.05 |
장난감 아님! (0) | 2009.10.07 |
---|---|
파스도 상하나? (4) | 2009.09.07 |
쌍무지개! (6) | 2009.05.15 |
왕푸징(왕부정) 거리 지표 (0) | 2009.05.10 |
3박 4일 중국 가족여행 (8) | 2009.05.05 |
휴가징크스 (6) | 2009.08.11 |
---|---|
프레스~~~~핫!! 2 (4) | 2009.08.10 |
파워문제가 아니었구나! ㅠ.ㅠ (0) | 2009.08.04 |
질렀노라 긁었노라 왔노라!!! (0) | 2009.07.30 |
몸이 아프면! (8) | 2009.07.24 |
]$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.10.10 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: 0000::0000:0000:0000:0000/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5359086 errors:0 dropped:0 overruns:0 frame:0 TX packets:5852086 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1210879185 (1.1 GiB) TX bytes:3916944358 (3.6 GiB) Interrupt:20 Base address:0x6000 |
ip address 10.75.20.201/16 is 10.75.255.255 [링크 : http://www.experts-exchange.com/Networking/Linux_Networking/Q_10255126.html] |
broadcast address The broadcast address is usually made up from the network number by setting all bits of the host part. Some IP implementations (systems derived from BSD 4.2, for instance) use a different scheme in which all host part bits are cleared instead. The broadcast option adapts to these strange environments. If a broadcast address has been set, ifconfig displays the BROADCAST flag. [링크 : http://tldp.org/LDP/nag2/x-087-2-iface.ifconfig.html] |
리눅스 시리얼 터미널 프로그래밍 - linux serail(terminal) programming (0) | 2009.08.21 |
---|---|
ifconfig broadcast 설정 안해도 된다! (0) | 2009.08.10 |
execl()를 이용한 쉘 스크립트 실행하기 - execute shell script using execl() (2) | 2009.08.07 |
busybox route 명령어 (0) | 2009.08.06 |
grep -r 옵션은 주의! (0) | 2009.08.06 |
ifconfig broadcast 설정 안해도 된다! (0) | 2009.08.10 |
---|---|
ifconfig Bcast 계산방법 (0) | 2009.08.07 |
busybox route 명령어 (0) | 2009.08.06 |
grep -r 옵션은 주의! (0) | 2009.08.06 |
쉘스크립트 - 변수 / 변수 치환 (2) | 2009.08.04 |
CVBS / RGB - SCART (2) | 2009.09.23 |
---|---|
풀업 / 풀다운 저항(Pull up / Pull down register) (4) | 2009.08.13 |
LGA775/Socket478 (4) | 2009.08.04 |
VT-d (0) | 2009.07.30 |
multicast MAC Address (2) | 2009.07.02 |
# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.10.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.10.1 0.0.0.0 UG 0 0 0 eth0 |
Flags Possible flags include U (route is up) H (target is a host) G (use gateway) R (reinstate route for dynamic routing) D (dynamically installed by daemon or redirect) M (modified from routing daemon or redirect) A (installed by addrconf) C (cache entry) ! (reject route) |
# route add default dev eth0 # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 U 0 0 0 eth0 |
#!/bin/sh # Sample udhcpc renew script RESOLV_CONF="/etc/resolv.conf" [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" /sbin/ifconfig $interface $ip $BROADCAST $NETMASK if [ -n "$router" ] then echo "deleting routers" while /sbin/route del default gw 0.0.0.0 dev $interface do : done metric=0 for i in $router do /sbin/route add default gw $i dev $interface metric $((metric++)) done fi |
여기서보면 flag 상태가 있는데 여기서 flag값의 의미는 다음과 같습니다. U = Route is "UP"
H = Route is for a single host
G = Route requires a hop across a gateway
즉 다시 말씀드리자면 UP은 destination까지의 경로가 살아있다는 얘기입니다. 거의 대부분은 다 UP상태입니다. 그리고 H는 destination이 network 주소가 아니라 single host일 경우가 됩니다. 그리고 G는 destination까지의 경로가 router를 거친다는것을 의미합니다. 그리고 U만 있는경우는 destination이 network주소일 경우입니다.
[링크 : http://h30499.www3.hp.com/t5/HP-UX/route-add-및-delete-에-관한-자료/td-p/1165815?profile.language=ko ] |
ifconfig Bcast 계산방법 (0) | 2009.08.07 |
---|---|
execl()를 이용한 쉘 스크립트 실행하기 - execute shell script using execl() (2) | 2009.08.07 |
grep -r 옵션은 주의! (0) | 2009.08.06 |
쉘스크립트 - 변수 / 변수 치환 (2) | 2009.08.04 |
bash - eval (0) | 2009.08.03 |
busybox udhcp interface 파일 주의사항 (0) | 2009.12.02 |
---|---|
busybox - ash에서 alias 지원하지 않을경우 (0) | 2009.09.03 |
비지박스 핑간격 조절하기 - busybox ping interval (0) | 2009.08.05 |
udhcpc 데몬 스크립트 (2) | 2009.07.30 |
Busybox build option - "Build BusyBox as a static binary (no shared libs)" (0) | 2009.07.30 |
execl()를 이용한 쉘 스크립트 실행하기 - execute shell script using execl() (2) | 2009.08.07 |
---|---|
busybox route 명령어 (0) | 2009.08.06 |
쉘스크립트 - 변수 / 변수 치환 (2) | 2009.08.04 |
bash - eval (0) | 2009.08.03 |
/proc/cmdline 내용 읽어오기 (0) | 2009.08.03 |
enum { DEFDATALEN = 56, MAXIPLEN = 60, MAXICMPLEN = 76, MAXPACKET = 65468, MAX_DUP_CHK = (8 * 128), MAXWAIT = 10, PINGINTERVAL = 1, /* 1 second */ }; |
busybox - ash에서 alias 지원하지 않을경우 (0) | 2009.09.03 |
---|---|
busybox ash 주의사항? (2) | 2009.08.06 |
udhcpc 데몬 스크립트 (2) | 2009.07.30 |
Busybox build option - "Build BusyBox as a static binary (no shared libs)" (0) | 2009.07.30 |
busybox dhcp 사용하기 - udhcpc/udhcpd (0) | 2009.07.29 |
ATmega128 UART 에코 서버 만들기 (echo server) (4) | 2009.10.08 |
---|---|
ATmega128 USART 사용하기 (0) | 2009.10.07 |
ubuntu에서 gnome-avrdude 사용하기 (0) | 2009.05.27 |
STK-200 / STK-500 호환 AVR ISP (2) | 2009.04.20 |
gnome-avrdude : avrdude GUI frontend for gnome (0) | 2009.04.15 |