기본 콘텐츠로 건너뛰기

리눅스 네트워 확인


* 네트웍 카드 확인
#lspci | grep Network
#lspci | grep Ethernet
#lspci | grep -i Mellanox

* 현재 등록 네트웍 정보
#ifconfig

* 물리적으로 등록 되어있는 네트웍 정보 모두 보기
#ifconfig -a

* IP 등록
#ifconfig eth0 192.168.8.1 netmask 255.255.255.0 up

*gateway 설정
#route add default gw 192.168.1.1

* 적용 확인
#ifconfig

* 제거
#ifconfig eth0 down


* route add
route add -net 192.168.0.0/24 netmask 255.255.255.0 gw 192.168.0.1
route add -host 192.168.0.12 gw 192.168.0.1

* route del
route del -net 192.168.0.0/24 netmask 255.255.255.0
route del -host 192.168.0.12 gw 192.168.0.1

*route 확인
route -n

댓글

이 블로그의 인기 게시물

java 특정 디렉토리에 있는 파일 목록을 읽어내기, 정렬해서 가져오기

폴더 리스트 가져오기 String path="C:\"; File dirFile=new File(path); File []fileList=dirFile.listFiles(); for(File tempFile : fileList) {   if(tempFile.isFile()) {     String tempPath=tempFile.getParent();     String tempFileName=tempFile.getName();     System.out.println("Path="+tempPath);     System.out.println("FileName="+tempFileName);     /*** Do something withd tempPath and temp FileName ^^; ***/   } } 정렬해서 가져오기 import java.io.FileFilter; import java.io.IOException; import java.util.Arrays; import java.util.Date; import org.apache.commons.io.comparator.LastModifiedFileComparator; import org.apache.commons.io.filefilter.FileFileFilter; public class LastModifiedFileComparatorTest { public static void main(String[] args) throws IOException { File directory = new File("."); // get just files, not directories File[] files = directory.listFiles((FileFilter) FileFileFilter.FILE); System.out.println("Defaul...

UltraEdit Professional Version 18.20.0.1014 라이센스 키 넣기

Step 1: unpack rar archive      Step 2: run the setup   Step 3: Use the given keygen to activate    Add the line   127.0.0.1 licensing.ultraedit.com         to your %WINDOWS%\system32\drivers\etc\hosts file                 Enter any data for license-id and password (license-id must be a         number)                 Choose Offline activation and generate corresponding activation         codes for your user codes   Step 4: Enjoy and Support Developers, Buy It, They Deserved It!