[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:17514] LAN の設定と ping コマンドについて



$B3A>B$H?=$7$^$9!#(B
 
win98$B$H(Bdebian$B$r(BLAN$B$G$D$J$2$k$N$KG:$s$G$$$^$9!#(B
$BJ,$+$kJ}$,$$$i$C$7$c$$$^$7$?$i$4;XF3$h$m$7$/$*4j$$$7$^$9!#(B
$BD9J8$H$J$C$F$7$^$$$^$9$,5v$7$F$/$@$5$$!#(B
 
win98$B$+$i$b(Bdebian$B$+$i$b(Bping$B$,DL$i$J$$$G:$$C$F$$$^$9!#(B
 
ping$B$N7k2L$O0J2<$NDL$j$G$9!#(B
 
$B!&(BDebian -> win $B$N(Bping
PING 192.168.1.2 (192.168.1.2): 56 data bytes

--- 192.168.1.2 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

$B!&(Bwin -> Debian $B$N(Bping
Pinging 192.168.1.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

$B$H$J$jG'<1$9$k$3$H$,=PMh$^$;$s$G$7$?!#(B
 
$B0J2<$K8=>u$N@_Dj$G$9!#(B
 
$B%N!<%H%Q%=%3%s!J(Bdebian$BB&!K(B
$B!&(B/dev/init.d/network
#! /bin/sh
IPADDR="192.168.1.1"  # Your IP address.
NETMASK="255.255.255.0"  # Your netmask.
NETWORK="192.168.1.0"  # Your network address.
BROADCAST="192.168.1.255" # Your broadcast address (blank if none).
GATEWAY=""   # Your gateway address.

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
/sbin/route add -net ${NETWORK}
[ ! -z "$GATEWAY" ] && /sbin/route add default gw ${GATEWAY}

$B!&(B/dev/hosts
127.0.0.1 localhost
192.168.1.1 debian.foo.ne.jp debian
192.168.1.2     kakinuma

$B!&(B/etc/pcmcia/network.opts
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO.  In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
    # Transceiver selection, for some cards -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP? [y/n]
    BOOTP="n"
    # Use DHCP? [y/n]
    DHCP="n"
    # Use DHCLIENT? [y/n]
    DHCLIENT="n"
    # Host's IP address, netmask, network address, broadcast address
    IPADDR="192.168.1.1"
    NETMASK="255.255.255.0"
    NETWORK="192.168.1.0"
    BROADCAST="192.168.1.255"
    # Gateway address for static routing
    GATEWAY=""
    # Things to add to /etc/resolv.conf for this interface
    DOMAIN=""
    SEARCH=""
    # The nameserver IP addresses specified here complement the
    # nameservers already defined in /etc/resolv.conf.  These nameservers
    # will be added to /etc/resolv.conf automatically when the PCMCIA
    # network connection is established and removed from this file when
    # the connection is broken.
    DNS_1=""
    DNS_2=""
    DNS_3=""
    # NFS mounts, should be listed in /etc/fstab
    MOUNTS=""
    # For IPX interfaces, the frame type and network number
    IPX_FRAME=""
    IPX_NETNUM=""
    # Extra stuff to do after setting up the interface
    start_fn () { return; }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    ;;
esac

$B!&(Bifconfig -a $B$N7k2L$G$9!#(B
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0

eth0      Link encap:Ethernet  HWaddr 00:80:C8:88:CC:C7
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0
          Interrupt:9 Base address:0x300


$B%G%9%/%H%C%W(B  (win98$BB&(B)
TCP/IP -> NE2000 Compatible
$B!&%3%s%T%e!<%?L>(B
kakinuma
$B!&%o!<%/%0%k!<%W(B
WORKGROUP
$B!&%3%s%T%e!<%?$N@bL@(B
windows
$B!&(BIP $B%"%I%l%9(B
192.168.1.2
$B!&%5%V%M%C%H%^%9%/(B
255.255.255.0
$B!&(Bwins$B@_Dj!"%2!<%H%&%(%$!"(BDNS $B@_Dj(B
$B2?$b@_Dj$7$F$$$^$;$s(B
 
$B9=@.5!4o(B
$B%N!<%H%Q%=%3%s(B
Debian2.0 $B!J(BDebian GNU/LINUX $BE0DlF~Lg(B $BIpF#7r;VCx!K(B
kernel2.0.36
pcmcia3.0.9
LAN  ->  D-Link DE-660
 
$B%G%9%/%H%C%W(B
win98
LAN  -> ENW-2401P-T  (NE2000 Compatible)
 
$B$H$$$&>uBV$G$9!#(B
ping$B$rDL$9$K$O$I$&$9$l$P$h$m$7$$$G$7$g$&$+!)(B
$B$4;XF3$h$m$7$/$*4j$$$7$^$9!#(B