조회 수 4882 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

여전히 ifconfig 를 사용하고 있다면 과거에 살고 있는 것이다.

리눅스에서 ifconfig 가 네트워크기기 정보를 불러오거나, 기기의 IP를 확인하거나, IP를 설정하는 사실상의 표준이었다.

그러나 시간이 지남에 따라 점점 더 많은 기능이 ifconfig 대신 ip 명령으로 대체되었다.

이미 우분투 데스크탑 배포판에는 ifconfig 설치를 중단했고(지금은 여전히 서버에 설치됨), 한동안 net-tools(ifconfig를 제공하는 패키지와 교체된 몇 가지 다른 이전 명령)를 삭제하는 것에 대해 논의해 왔다.

다음은 ifconfig 대신 사용되는 주요 명령이다.

ip address show 간편하게는 ip a

ip link show 간편하게는 ip l

 

다음을 사용하여 장치를 up 또는 down 으로 설정할 수 있다(ifconfig eth0 up 또는 ifconfig eth0 down과 유사).

ip link set eth0 up  또는 ip link set eth0 down

 

그 밖에 ip 명령어를 사용하여 상호작용할 수 있는 다른 옵션이 많이 있다. 이와 관련된 인터넷에 많은 글들을 쉽게 찾을 수 있다.

더 이상 사용되지 않는 Linux 명령 및 대체 명령 시트:

이전 명령(더 이상 사용되지 않음) 새 명령
ifconfig -a ip a
ifconfig eth0 down ip link set eth0 down
ifconfig eth0 up ip link set eth0 up
ifconfig eth0 192.168.2.24 ip addr add 192.168.2.24/24 dev eth0
ifconfig eth0 netmask 255.255.255.0 ip addr add 192.168.1.1/24 dev eth0
ifconfig eth0 mtu 9000 ip link set eth0 mtu 9000
ifconfig eth0:0 192.168.2.25 ip addr add 192.168.2.25/24 dev eth0
netstat ss
netstat -tulpn ss -tulpn
netstat -neopa ss -neopa
netstat -g ip maddr
route ip r
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0 ip route add 192.168.2.0/24 dev eth0
route add default gw 192.168.2.254 ip route add default via 192.168.2.254
arp -a ip neigh
arp -v ip -s neigh
arp -s 192.168.2.33 1:2:3:4:5:6 ip neigh add 192.168.3.33 lladdr 1:2:3:4:5:6 dev eth0
arp -i eth0 -d 192.168.2.254 ip neigh del 192.168.2.254 dev eth0
TAG •

  1. No Image

    리눅스에서 시리얼 포트 사용 및 접근 권한

    Date2024.05.21 Bymakersweb Views3852
    Read More
  2. No Image

    리눅스 Qt 응용프로그램 AppImage 로 구축

    Date2024.01.07 Bymakersweb Views3511
    Read More
  3. No Image

    GRUB의 timeout 설정

    Date2023.11.07 Bymakersweb Views4021
    Read More
  4. lubuntu 22.04 LTS 설치

    Date2023.01.23 Bymakersweb Views6680
    Read More
  5. No Image

    시스템에서 사용 가능한 D-Bus 서비스를 보려면?

    Date2022.12.29 Bymakersweb Views6482
    Read More
  6. No Image

    리눅스에서 네트워크 구성

    Date2022.06.11 Bymakersweb Views6418
    Read More
  7. D-Bus ObjectManager

    Date2022.02.12 Bymakersweb Views3301
    Read More
  8. No Image

    ifconfig 는 대부분 ip 명령으로 대체

    Date2022.02.12 Bymakersweb Views4882
    Read More
  9. SocketCAN 유틸 사용방법

    Date2022.02.05 Bymakersweb Views16089
    Read More
  10. No Image

    dbus-broker를 기본 DBus 구현으로 설정

    Date2021.01.20 Bymakersweb Views4859
    Read More
  11. 리눅스 오디오 스택과 아키텍처

    Date2020.09.02 Bymakersweb Views6252
    Read More
  12. No Image

    wayland-scanner 를 통해 Wayland 프로토콜 코드생성

    Date2020.06.08 Bymakersweb Views4681
    Read More
  13. No Image

    Wayland 의 Client Application 프로그래밍 기본 루틴

    Date2020.06.04 Bymakersweb Views5407
    Read More
  14. No Image

    Wayland 의 주요 객체들

    Date2020.06.04 Bymakersweb Views4521
    Read More
  15. No Image

    Weston 의 설명 및 관련 컴포넌트

    Date2020.06.03 Bymakersweb Views6444
    Read More
  16. No Image

    64비트 리눅스에서 32비트 응용프로그램을 실행하려면

    Date2020.02.29 Bymakersweb Views4757
    Read More
  17. No Image

    initramfs (initial ram file system: 초기 램 파일 시스템)

    Date2020.02.25 Bymakersweb Views6143
    Read More
  18. No Image

    플랫폼 디바이스 드라이버 개발 시 많이 사용되는 커널 API 및 매크로

    Date2020.01.28 Bymakersweb Views8260
    Read More
  19. No Image

    PATH에 새로운 경로 추가

    Date2019.09.19 Bymakersweb Views3065
    Read More
  20. No Image

    리눅스 컴파일러 최신으로 업데이트

    Date2018.12.26 Bylinux Views4216
    Read More
Board Pagination Prev 1 2 3 Next
/ 3