C:\>ipconfig /all Windows 2000 IP Configuration Host Name . . . . . . . . . . . . : netpc1 Primary DNS Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Broadcast IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter ローカル エリア接続: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adap Physical Address. . . . . . . . . : EE-07-F9-17-46-24 DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.0.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.5 DNS Servers . . . . . . . . . . . : 210.130.0.1 210.130.1.1 NetBIOS over Tcpip. . . . . . . . : Disabled C:\> |
C:\>netstat -a Active Connections Proto Local Address Foreign Address State TCP netpc1:http netpc1:0 LISTENING TCP netpc1:epmap netpc1:0 LISTENING TCP netpc1:microsoft-ds netpc1:0 LISTENING TCP netpc1:3392 netpc1:3393 ESTABLISHED TCP netpc1:3393 netpc1:3392 ESTABLISHED TCP netpc1:4744 imgg01.img.vip.bbt.yahoo.co.jp:http TIME_WAIT TCP netpc1:4745 pa.yahoo.co.jp:http TIME_WAIT TCP netpc1:4761 imgu01.img.vip.mci.yahoo.co.jp:http TIME_WAIT TCP netpc1:4776 205.161.7.121:http ESTABLISHED TCP netpc1:4777 205.161.7.121:http ESTABLISHED TCP netpc1:4778 205.161.7.127:http ESTABLISHED TCP netpc1:4779 205.161.7.113:http ESTABLISHED TCP netpc1:4780 205.161.7.145:http ESTABLISHED TCP netpc1:4781 205.161.7.127:http ESTABLISHED TCP netpc1:4782 a216-148-237-147.deploy.akamaitechnologies.com:http ESTABLISHED TCP netpc1:4783 a216-148-237-147.deploy.akamaitechnologies.com:http ESTABLISHED TCP netpc1:4784 205.161.7.113:http ESTABLISHED TCP netpc1:4825 205.161.7.127:http ESTABLISHED TCP netpc1:4826 205.161.7.145:http ESTABLISHED TCP netpc1:4834 205.161.7.142:http ESTABLISHED TCP netpc1:4841 205.161.7.118:http ESTABLISHED TCP netpc1:4842 205.161.7.118:http ESTABLISHED TCP netpc1:4843 205.161.7.127:http ESTABLISHED TCP netpc1:4844 205.161.7.142:http ESTABLISHED TCP netpc1:4860 www.watch.impress.co.jp:http ESTABLISHED TCP netpc1:4864 www.watch.impress.co.jp:http ESTABLISHED TCP netpc1:4866 ngs.impress.co.jp:http ESTABLISHED UDP netpc1:microsoft-ds *:* UDP netpc1:4586 *:* C:\> |
C:\>nslookup 61.121.66.8 Server: ns01.iij4u.or.jp Address: 210.130.0.1 Name: ntkgsm013008.kgsm.nt.ftth.ppp.infoweb.ne.jp Address: 61.121.66.8 C:\> |
[root]# ifconfig ppp0 ppp0 リンク方法:Point-to-Pointプロトコル inetアドレス:61.121.66.8 P-t-P:133.160.135.246 マスク:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1 RX packets:600700 errors:0 dropped:0 overruns:0 frame:0 TX packets:1011374 errors:0 dropped:0 overruns:0 carrier:0 衝突(Collisions):0 TXキュー長:3 RX bytes:42335282 (40.3 Mb) TX bytes:1424516252 (1358.5 Mb) [root]# |
[root]# ifconfig ppp0 | grep P-t-P | awk '{print $1}' | cut -c 14- 210.130.111.159 |
[root]# nslookup 61.121.66.8 Server: ns01.iij4u.or.jp Address: 210.130.0.1 Name: ntkgsm013008.kgsm.nt.ftth.ppp.infoweb.ne.jp Address: 61.121.66.8 [root]# |
[root]# ifconfig ppp0 | grep P-t-P | awk '{print $1}' | cut -c 14- | nslookup | grep Name | awk '{print $2}' ntkgsm013008.kgsm.nt.ftth.ppp.infoweb.ne.jp [root]# |
[root]# route カーネルIP経路テーブル 受信先サイト ゲートウェイ ネットマスク フラグ Metric Ref 使用数 インターフェース 133.160.135.246 * 255.255.255.255 UH 0 0 0 ppp0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 133.160.135.246 0.0.0.0 UG 0 0 0 ppp0 [root]# |
[root]# ip addr 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ether 00:0e:0c:35:ef:d4 brd ff:ff:ff:ff:ff:ff inet 192.168.0.5/24 brd 192.168.0.255 scope global eth0 3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ether 00:02:b3:ea:7f:61 brd ff:ff:ff:ff:ff:ff 8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1454 qdisc pfifo_fast qlen 3 link/ppp inet 61.121.66.8 peer 133.160.135.246/32 scope global ppp0 [root]# |
[root]# ip route 133.160.135.246 dev ppp0 proto kernel scope link src 61.121.66.8 192.168.0.0/24 dev eth0 scope link 127.0.0.0/8 dev lo scope link default via 133.160.135.246 dev ppp0 [root]# |