K
K
krlljs2015-04-07 22:54:40
iptables
krlljs, 2015-04-07 22:54:40

How does network routing work, and why do we need a netmask?

When I ran the ifconfig command, I accidentally noticed that the eth0 and wlan0 interfaces have different subnet masks, Mask:255.255.224.0 and Mask:255.255.225.0

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.8.96.1       0.0.0.0         UG    0      0        0 eth0
10.8.96.0       *               255.255.224.0   U     1      0        0 eth0
10.42.0.0       *               255.255.255.0   U     9      0        0 wlan0


Next, I paid attention to the meanings of Gateway, but how is Getaway related to Genmask?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Spetros, 2015-04-08
@Spetros

Routing Table
From Wikipedia, the free encyclopedia

I
Ivan, 2015-04-10
@t3mp

but how is Getaway related to Genmask

Under the word "default" the network is hidden 0.0.0.0, in total we get the route0.0.0.0/0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question