°Ô½Ã¹° 1,358°Ç
   
ip, subnet, gateway cmd
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2017-09-13 (¼ö) 13:46 Á¶È¸ : 19800
±ÛÁÖ¼Ò :
                                
¸®´ª½º ³×Æ®¿öÅ© ¼³Á¤ ¸í·É¾î
root@chonnom:~# ifconfig
eth0      Link encap:Ethernet  HWaddr f4:6d:04:d2:ef:96  
          inet addr:192.168.22.223  Bcast:192.168.22.255  Mask:255.255.255.0
          inet6 addr: fe80::f66d:4ff:fed2:ef96/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3580694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2295005 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3859833859 (3.8 GB)  TX bytes:343340442 (343.3 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4409 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4409 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:1089655 (1.0 MB)  TX bytes:1089655 (1.0 MB)


root@chonnom:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.22.1    0.0.0.0         UG    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.22.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0


root@chonnom:~# ifconfig eth0 192.168.22.225 netmask 255.255.255.0
root@chonnom:~# ifconfig
eth0      Link encap:Ethernet  HWaddr f4:6d:04:d2:ef:96  
          inet addr:192.168.22.225  Bcast:192.168.22.255  Mask:255.255.255.0
          inet6 addr: fe80::f66d:4ff:fed2:ef96/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3581282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2295456 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3859934346 (3.8 GB)  TX bytes:343379879 (343.3 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4432 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4432 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:1091783 (1.0 MB)  TX bytes:1091783 (1.0 MB)


root@chonnom:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.22.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0


root@chonnom:~# route add default gw 192.168.22.1 eth0
root@chonnom:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.22.1    0.0.0.0         UG    0      0        0 eth0
192.168.22.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.