리눅스

[root@localhost ~]# ip addr


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:7b:51:eb brd ff:ff:ff:ff:ff:ff
    inet 192.168.126.128/24 brd 192.168.126.255 scope global dynamic ens33
       valid_lft 1404sec preferred_lft 1404sec
    inet6 fe80::dfd9:e25f:9cc5:2397/64 scope link 
       valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 52:54:00:14:6a:7a brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000
    link/ether 52:54:00:14:6a:7a brd ff:ff:ff:ff:ff:ff


웹주소
http://ipinfo.io/ip

=> 자신의 ip 출력

[root@localhost ~]# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.kr/?gfe_rd=cr&amp;ei=_TioWK6CBaXz8AeVqq_gDA">here</A>.
</BODY></HTML>
[root@localhost ~]# curl ipinfo.io/ip
221.150.121.238

 

 

 

 

about author

PHRASE

Level 60  머나먼나라

그 지위에 있지 않으면 그 정사(政事)를 논하지 말아라. -공자

댓글 ( 0)

댓글 남기기

작성
  •    
  •    
  •