Craft Terminal Better | Subnetwork

Next steps: Practice creating a VLSM (Variable Length Subnet Mask) tree using only ip route add commands. Then, break it on purpose and fix it with ip route del . That is how you master the craft.

# On Router A ip addr add 192.168.1.254/31 dev eth0.10 ip link set eth0.10 up # On Router B ip addr add 192.168.1.255/31 dev eth0.10 ip link set eth0.10 up Note: /31 subnets (RFC 3021) eliminate broadcast addresses for P2P links, saving 50% of IP space. Sometimes you need a subnet to egress via a VPN tunnel, while your main subnet uses the WAN. subnetwork craft terminal better

# Give subnet 192.168.100.0/24 guaranteed 100mbit on a 1gbit link tc qdisc add dev eth0 root handle 1: htb default 30 tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \ match ip dst 192.168.100.0/24 flowid 1:1 For large subnets (/16 or /12), the default ARP cache time (300 seconds) is too long. Next steps: Practice creating a VLSM (Variable Length

The terminal is faster, more reliable, and infinitely more transparent. So, open your SSH client, drop into a root shell, and start typing. Your network will thank you. # On Router A ip addr add 192

Create a new VLAN, assign IPs, reboot. (Slow) The Terminal way (Better):

You gain the ability to split a /24 into variable-length subnets in milliseconds, diagnose a cross-subnet latency spike by reading kernel buffers, and automate the provisioning of 50 VLANs before your coffee gets cold.