Find Primary IP Address of a Linux Machine

2023. 9. 7. 01:04·Linux

Network Interface Overview

$ ip address show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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 noprefixroute 
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether b0:41:6f:0b:90:b2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.67/24 brd 192.168.10.255 scope global dynamic noprefixroute enp1s0
       valid_lft 83831sec preferred_lft 83831sec
    inet6 fe80::6ab2:6114:33ae:d860/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

 

The Primary Network Interface

$ route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    100    0        0 ens33
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 ens33
192.168.207.0   0.0.0.0         255.255.255.0   U     100    0        0 ens33

 

External IP Address

$ curl ifconfig.me

220.158.158.132

 

'Linux' 카테고리의 다른 글

Getting Started With Pacman Commands in Arch-based Linux  (0) 2023.09.06
How to install dynamodb local  (0) 2023.06.27
wrk - a HTTP benchmarking tool  (1) 2023.06.05
VirtualBox 에서 우분투 7.10 server 설치시 "PANIC: CPU too old for this kernel" 메시지  (3) 2008.01.14
VirtualBox - Windows의 네트워크 브리지를 사용한 네트워크 구성(NAT 사용)  (0) 2007.12.17
'Linux' 카테고리의 다른 글
  • Getting Started With Pacman Commands in Arch-based Linux
  • How to install dynamodb local
  • wrk - a HTTP benchmarking tool
  • VirtualBox 에서 우분투 7.10 server 설치시 "PANIC: CPU too old for this kernel" 메시지
somoly
somoly
About me.
  • somoly
    somoly.tistory.com
    somoly
  • 전체
    오늘
    어제
    • 전체 (55)
      • SpringBoot (8)
      • Kotlin (5)
      • Javascript (4)
      • 백엔드 (6)
      • Linux (25)
      • Windows (1)
      • IT (2)
      • FF14 (1)
      • 애니 (1)
      • Figure (1)
      • 회사생활 (1)
  • 블로그 메뉴

    • HOME
    • TAGS
    • MEDIA
    • LOCATION
    • GUESTBOOK
    • ADMIN
    • WRITE
  • 링크

    • [FF14] 5.0 (71-80) 제작 레벨링 매크로
    • [FF14] 갈론드벨
    • [FF14] FFLogs
    • [FF14] Ariyala 장비 시뮬레이터
    • [FF14] 낚시 도우미
    • [FF14] 인테리어 정보
    • [FF14] 의상 코디 정보
  • 공지사항

  • 인기 글

  • 태그

    부팅
    우분투
    30일전
    피규어
    Spring
    P2P
    리눅스
    Kotlin
    springboot
    utf-8
    VirtualBox
    accesskey
    ubuntu
    최후의 재림
    설치
    dynamodb local
    exchage method
    versioncomapre
    string methods
    tabulator
    linux
    HTTP
    javascript
    jvminline
    interactive table
    77인치
    동영상
    bcmod
    83인치
    종료
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
somoly
Find Primary IP Address of a Linux Machine
상단으로

티스토리툴바