[root@lemna ~]# ip addr add 192.168.1.0/24 dev eth0
[root@lemna ~]# ip add show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group
default qlen 1000
     link/ether b8:ac:6f:69:63:ca brd ff:ff:ff:ff:ff:ff
     inet  brd 192.168.55.255 scope global eth0


1. ip addr add 192.168.1.0/24 dev eth0 - This is not a host address. This
is the subnet address. On this subnet there are 253 hosts. 192.168.1.1 to
192.168.1.254.

2. The default for most SOHO network devices is to grab the first address
of 192.168.1.0 subnet.

So your router ip addr is 192.168.1.1

3. Any DHCP configured clients connecting to the router will get addresses
on the 192.168.1.0 subnet in order.

4. Any network interfaces on the same subnet do not need any routing
configured. That means, any devices with ip addresses from 192.168.1.1 to
192.168.1.254 should be able to see & communicate with each other.

* Routing is only used between subnets. A laptop with the ip addr
192.168.55.3/24 would need a route to see & connect to a device on the
192.168.1.0/24 subnet.

Below you'll see my laptop ip address, the default route and the ip addr &
arp entry for my router that my laptop connects to the internet via.

*lp2s0b1  *Link encap:Ethernet  HWaddr 30:10:b3:b6:14:b8
          i*net addr:192.168.43.83  Bcast:192.168.43.255 *

 ~ *$ netstat -r*
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
*default         192.168.43.105 * 0.0.0.0         UG        0 0
~
* $ arp -a? (192.168.43.105)* at* 60:1d:91:53:bc:3e [ether] on wlp2s0b1*

-- This demonstrates that my laptop sees my router's ip addr & mac addr via
the wireless ethernet interface.

As I previously mentioned, always check arp -a to verify that the device
you're on can see the device you're trying to connect to first.

If you can't, ping won't work and you have to start at the physical layer
(port, cable) then logical link (mac address) then internet (ip addr)

You also mentioned in earlier message why does the ethernet interface
report both "up & running"

UP = The interface is enabled and not disabled
RUNNING = The interface is actively passing traffic and stats are being
collected.

-- HTH --
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to