Changes between Version 16 and Version 17 of TipAndDoc/network
- Timestamp:
- Nov 7, 2009 7:13:17 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/network
v16 v17 4 4 * [http://linux-ip.net/ Guide to IP Layer Network Administration with Linux (http://linux-ip.net/)] 5 5 * [http://www.linux.or.jp/JF/JFdocs/Adv-Routing-HOWTO/lartc.kernel.obscure.html Linux Advanced Routing & Traffic Control HOWTO - あまり知られていない設定] 6 7 * NICの羅列 8 {{{ 9 ip link | grep "^[1-9]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep "^eth" 10 }}} 11 12 * IPの取得 13 {{{ 14 ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' 15 }}} 16 {{{ 17 ip addr | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1 18 }}} 6 19 7 20 = disable ipv6 =