为什么用分流器(小型交换机)将一根网线分为分为两根后能够产生两个ip地址?
大一的时候宿舍的网口不够用,于是去网上买了一个分流器将一根网线分为两个,能够供两个小伙伴使用,当时去看了接上了这两根网线的ip地址,发现他们不一样,我就很困惑,它们都是经过同一根网线出去的,为什么它们的地址不一样呢?
直到后来学了计算机网络后终于懂了。
原来网络不是我想的这样,在有dpcp服务的系统中,每台主机接入系统都会请求分配ip地址,所以经过同一个网线的两台主机有两个ip地址,ip地址也不是固定在网线上的,甚至mac地址也不是固定在网线上的,网线只不过是一条路。