Changes between Version 16 and Version 17 of TipAndDoc/network


Ignore:
Timestamp:
Nov 7, 2009 7:13:17 PM (15 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network

    v16 v17  
    44 * [http://linux-ip.net/ Guide to IP Layer Network Administration with Linux (http://linux-ip.net/)] 
    55 * [http://www.linux.or.jp/JF/JFdocs/Adv-Routing-HOWTO/lartc.kernel.obscure.html Linux Advanced Routing & Traffic Control HOWTO - あまり知られていない設定] 
     6 
     7 * NICの羅列 
     8{{{ 
     9ip link | grep "^[1-9]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep "^eth" 
     10}}} 
     11 
     12 * IPの取得 
     13{{{ 
     14ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' 
     15}}} 
     16{{{ 
     17ip addr | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1 
     18}}} 
    619 
    720 = disable ipv6 =