Skip to contentমূল লেখায় যান

Stage 09 · Linuxধাপ 09 · Linux · 15 topics · 32 commands15টি টপিক · 32টি কমান্ড

Networking

Understand the network stack and use the tools that test and protect it.

UPPERCASE = your own value · red ! = can destroy data · tick a card when you know itUPPERCASE = আপনার নিজের মান · লাল ! = data নষ্ট করতে পারে · জানা হলে কার্ডে টিক দিন

0 / 15 done0 / 15 সম্পন্ন

Networking

ip -br addr
your interfaces and addressesআপনার interface ও address
ip route
the routing tablerouting table (পথের তালিকা)
ss -tulpn
listening ports, with their processeslistening port ও তাদের process
ping -c 4 HOST
can you reach a host?host-এ পৌঁছানো যায় কি না
dig +short DOMAIN
turn a name into an addressনাম থেকে address বের করে
curl -I URL
fetch only the HTTP headersশুধু HTTP header আনে
ssh USER@HOST
log in to another machineঅন্য machine-এ login করে

Source 1সোর্স 1Source 2সোর্স 2Source 3সোর্স 3Source 4সোর্স 4Source 5সোর্স 5Source 6সোর্স 6Source 7সোর্স 7Source 8সোর্স 8

TCP/IP

Link · Internet · Transport · Application
the four TCP/IP layers, bottom to topTCP/IP-র চার স্তর, নিচ থেকে উপরে
ss -tan
all TCP connections, numericসব TCP connection, সংখ্যায়
ss -ltn
listening TCP socketsযেসব TCP socket শুনছে
ss -tn state established
only established connectionsশুধু established connection
ss -tn sport = :22
connections on local port 22local port 22-এর connection
ss -s
socket totals by typeধরন অনুযায়ী socket-এর মোট সংখ্যা
nc -zv HOST PORT
test whether a TCP port is openTCP port খোলা আছে কি না পরীক্ষা করে
/etc/services
port numbers and their service namesport নম্বর ও service-এর নাম

Source 4সোর্স 4Source 9সোর্স 9Source 10সোর্স 10Source 11সোর্স 11

Ethernet, ARP, and RARP

ip -br link
interfaces with their MAC addressesinterface ও তাদের MAC address
ip -s link show IF
packet and error counterspacket ও error-এর হিসাব
ip neigh
the ARP cache: IP to MACARP cache: IP থেকে MAC
sudo ip neigh flush dev IF
clear the ARP cache of an interfaceএকটি interface-এর ARP cache মোছে
arp -n
the ARP table, old toolARP table, পুরোনো tool
sudo arping -c 3 IP
ARP-ping a local addresslocal address-এ ARP-ping করে
ethtool IF
the device's current settingsdevice-এর বর্তমান setting
RARP
the reverse of ARP: MAC to IP lookupARP-র উল্টো: MAC থেকে IP খোঁজা

Source 1সোর্স 1Source 12সোর্স 12Source 13সোর্স 13Source 14সোর্স 14Source 15সোর্স 15Source 16সোর্স 16Source 17সোর্স 17Source 18সোর্স 18

Subnetting

ipcalc 192.168.1.0/24
network, broadcast, and host rangenetwork, broadcast ও host-এর সীমা
/24
255.255.255.0: 254 hosts255.255.255.0: ২৫৪টি host
/16
255.255.0.0: 65,534 hosts255.255.0.0: ৬৫,৫৩৪টি host
/30
255.255.255.252: 2 hosts, for a link255.255.255.252: ২টি host, একটি link-এর জন্য
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
private ranges, not routed on the internetprivate range, internet-এ route হয় না
127.0.0.0/8
loopback: this machineloopback: এই machine

Source 19সোর্স 19Source 20সোর্স 20Source 21সোর্স 21Source 11সোর্স 11

IP Routing

ip route
the routing tablerouting table (পথের তালিকা)
ip route get 8.8.8.8
which route a packet would takeএকটি packet কোন route নেবে
ip rule
policy routing rulespolicy routing-এর rule
sudo ip route add default via IP
set the default gateway; can cut your connectiondefault gateway ঠিক করে; connection কেটে যেতে পারে
sudo ip route add NET via IP dev IF
route a network through a gatewayএকটি network gateway দিয়ে route করে
sudo ip route del default
remove the default route; can cut you offdefault route সরায়; connection কেটে যেতে পারে
sysctl net.ipv4.ip_forward
is this host a router? 1 = yesএই host কি router? ১ = হ্যাঁ
sudo sysctl -w net.ipv4.ip_forward=1
forward packets until rebootreboot পর্যন্ত packet forward করে

Source 1সোর্স 1Source 3সোর্স 3Source 22সোর্স 22Source 23সোর্স 23

DHCP

1 discover 2 offer 3 request 4 ack
the four DHCP messages, in orderDHCP-র চারটি message, ক্রমানুসারে
ip -4 addr show IF
the address and its lifetime (valid_lft)address ও তার মেয়াদ (valid_lft)
nmcli device show IF
address, gateway, DNS, and DHCP optionsaddress, gateway, DNS ও DHCP option
nmcli connection show
the saved connectionsসংরক্ষিত connection
sudo nmcli connection up NAME
activate a saved connectionসংরক্ষিত connection চালু করে
networkctl status IF
state under systemd-networkdsystemd-networkd-এ অবস্থা
journalctl -u NetworkManager -b
this boot's NetworkManager logএই boot-এর NetworkManager log

Source 1সোর্স 1Source 2সোর্স 2Source 24সোর্স 24Source 25সোর্স 25Source 26সোর্স 26Source 27সোর্স 27

DNS Resolution

dig example.com
ask DNS for the addressDNS-এর কাছে address চায়
dig +short example.com
only the answerশুধু উত্তর
dig MX example.com
mail servers (also NS, TXT, AAAA)mail server (NS, TXT, AAAA-ও)
dig @1.1.1.1 example.com
ask a specific DNS serverনির্দিষ্ট DNS server-কে জিজ্ঞেস করে
dig -x 8.8.8.8
reverse lookup: address to namereverse lookup: address থেকে নাম
resolvectl status
the DNS servers in use (systemd-resolved)ব্যবহৃত DNS server (systemd-resolved)
getent hosts example.com
resolve the way programs doprogram যেভাবে resolve করে সেভাবে
/etc/resolv.conf /etc/hosts
DNS servers to ask · local name overridesকোন DNS server · স্থানীয় নামের তালিকা

Source 6সোর্স 6Source 28সোর্স 28Source 29সোর্স 29Source 30সোর্স 30Source 31সোর্স 31

ICMP

ICMP 8 · 0
echo request · echo reply (ping)ping-এর echo request · echo reply
ICMP 3
destination unreachabledestination unreachable (গন্তব্যে পৌঁছানো যায়নি)
ICMP 11
time exceeded: the TTL ran outtime exceeded: TTL শেষ
ping -c 4 HOST
send echo requests, count the repliesecho request পাঠায়, reply গোনে
ping -M do -s 1472 HOST
test the MTU: do not fragmentMTU পরীক্ষা: fragment করা যাবে না
tracepath HOST
path MTU, no root neededpath MTU, root লাগে না
ping -4 HOST ping -6 HOST
force IPv4 · force IPv6IPv4 · IPv6 বাধ্য করে

Source 5সোর্স 5Source 32সোর্স 32Source 33সোর্স 33Source 34সোর্স 34

ping

ping HOST
send until Ctrl+C stops itCtrl+C না চাপা পর্যন্ত পাঠায়
ping -c 4 HOST
send 4 and stop৪টি পাঠিয়ে থামে
ping -i 2 HOST
one packet every 2 secondsপ্রতি ২ সেকেন্ডে একটি packet
ping -W 2 HOST
wait 2 seconds for each replyপ্রতিটি reply-র জন্য ২ সেকেন্ড অপেক্ষা
ping -w 10 HOST
stop after 10 seconds in totalমোট ১০ সেকেন্ড পরে থামে
ping -s 1000 HOST
set the payload size in bytespayload-এর size byte-এ ঠিক করে
ping -q -c 10 HOST
print only the summaryশুধু সারসংক্ষেপ দেখায়

Source 5সোর্স 5

traceroute

traceroute HOST
list the routers on the wayপথের router-গুলোর তালিকা
traceroute -n HOST
no name lookups, fasterনাম খোঁজে না, দ্রুত
sudo traceroute -I HOST
use ICMP probesICMP probe ব্যবহার করে
sudo traceroute -T -p 443 HOST
use TCP probes to port 443port 443-এ TCP probe ব্যবহার করে
traceroute -m 15 HOST
stop after 15 hops১৫ hop পরে থামে
tracepath HOST
like traceroute, no root neededtraceroute-এর মতো, root লাগে না
* * *
no reply from this hop, often a firewallএই hop সাড়া দেয়নি, প্রায়ই firewall

Source 35সোর্স 35Source 32সোর্স 32

netstat

netstat -tulpn
listening ports and their processeslistening port ও তাদের process
netstat -an
all sockets, numericসব socket, সংখ্যায়
netstat -r
the routing tablerouting table (পথের তালিকা)
netstat -i
interface countersinterface-এর হিসাব
netstat -s
statistics for each protocolপ্রতিটি protocol-এর পরিসংখ্যান
ss -tulpn
the modern replacementআধুনিক বিকল্প

Source 36সোর্স 36Source 4সোর্স 4

Netfilter

sudo nft list ruleset
show all nftables rulesসব nftables rule দেখায়
sudo iptables -L -n -v
show iptables rules, with countersiptables rule দেখায়, counter-সহ
sudo iptables -A INPUT -s IP -j DROP
drop all packets from one addressএকটি address-এর সব packet ফেলে দেয়
sudo iptables -F
delete all rules; can lock you outসব rule মোছে; আপনি বাইরে পড়ে যেতে পারেন
sudo iptables-save
print the rules in a savable formসংরক্ষণযোগ্য রূপে rule ছাপে
sudo ufw status verbose
firewall status and rules, in detailfirewall-এর অবস্থা ও rule, বিস্তারিত
sudo ufw allow 22/tcp
open a portএকটি port খোলে
sudo ufw enable
turn the firewall onfirewall চালু করে

Source 37সোর্স 37Source 38সোর্স 38Source 39সোর্স 39Source 40সোর্স 40

Packet Analysis

sudo tcpdump -i IF
capture on one interfaceএকটি interface-এ capture করে
sudo tcpdump -i any -nn port 80
all interfaces, no lookups, one portসব interface, lookup ছাড়া, একটি port
sudo tcpdump -nn host IP
traffic to or from one hostএকটি host-এর আসা-যাওয়া traffic
sudo tcpdump -c 20 -nn icmp
stop after 20 ICMP packets২০টি ICMP packet পরে থামে
sudo tcpdump -w FILE.pcap
save packets to a file; replaces an existing filepacket একটি file-এ রাখে; আগের file বদলে যায়
tcpdump -r FILE.pcap
read a saved captureসংরক্ষিত capture পড়ে
tshark -r FILE.pcap
analyze a capture in the terminalterminal-এ capture বিশ্লেষণ করে

Source 41সোর্স 41Source 42সোর্স 42Source 43সোর্স 43

SSH

ssh USER@HOST
log inlogin করে
ssh -p 2222 USER@HOST
use another portঅন্য port ব্যবহার করে
ssh -i KEY USER@HOST
use this private keyএই private key ব্যবহার করে
ssh-keygen -t ed25519
make a key pairkey pair বানায়
ssh-copy-id USER@HOST
install your public key thereআপনার public key সেখানে বসায়
ssh -L 8080:localhost:80 USER@HOST
forward local port 8080 to remote port 80local port 8080 থেকে remote port 80-এ পাঠায়
ssh USER@HOST CMD
run one command and come backএকটি command চালিয়ে ফিরে আসে
~/.ssh/config
host aliases and defaultshost-এর ডাকনাম ও ডিফল্ট

Source 8সোর্স 8Source 44সোর্স 44Source 45সোর্স 45Source 46সোর্স 46

File Transfer

scp FILE USER@HOST:DIR
copy a file there; replaces a same-name fileremote-এ file কপি করে; একই নামের file বদলে যায়
scp -r DIR USER@HOST:DIR
copy a directory; replaces same-name filesdirectory কপি করে; একই নামের file বদলে যায়
sftp USER@HOST
interactive transfer: get and putinteractive transfer: get ও put
rsync -av SRC DST
copy changes only; overwrites changed filesশুধু পরিবর্তন কপি করে; বদলানো file ওভাররাইট হয়
rsync -avz SRC USER@HOST:DST
over SSH, compressed; overwrites changed filesSSH-এ, compress করে; বদলানো file ওভাররাইট হয়
rsync -av --delete SRC DST
Warningসতর্কতা: mirror: delete extra files in DSTmirror: DST-র বাড়তি file মোছে
curl -O URL
Warningসতর্কতা: download under its own name, replacing any fileনিজের নামে download করে; একই নামের file বদলে যায়
wget URL
download a filefile download করে

Source 47সোর্স 47Source 48সোর্স 48Source 49সোর্স 49Source 7সোর্স 7Source 50সোর্স 50

5 min read5 মিনিটে পড়া যায় · 15 sections15টি সেকশন · 50 sources50টি সোর্স · updated Nov 2026আপডেট: Nov 2026

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

Sourcesসোর্স50 · accessed 2026-11-27দেখা হয়েছে: 2026-11-27

Suggest an editএডিটের পরামর্শ দিন
  1. [1]ip(8) - show / manipulate routing, network devices, interfaces and tunnels
  2. [2]ip-address(8) - protocol address management
  3. [3]ip-route(8) - routing table management
  4. [4]ss(8) - another utility to investigate sockets
  5. [5]ping(8) - send ICMP ECHO_REQUEST to network hosts
  6. [6]Manual pages: dig and delv (BIND 9)
  7. [7]curl man page
  8. [8]ssh(1) - OpenSSH remote login client
  9. [9]nc(1) - arbitrary TCP and UDP connections and listens
  10. [10]services(5) - Internet network services list
  11. [11]RFC 1122: Requirements for Internet Hosts - Communication Layers
  12. [12]ip-link(8) - network device configuration
  13. [13]ip-neighbour(8) - neighbour/arp tables management.
  14. [14]arp(8) - manipulate the system ARP cache
  15. [15]arping(8) - send ARP REQUEST to a neighbour host
  16. [16]ethtool(8) - query or control network driver and hardware settings
  17. [17]RFC 826: An Ethernet Address Resolution Protocol
  18. [18]RFC 903: A Reverse Address Resolution Protocol
  19. [19]ipcalc(1) - an IPv4 netmask/broadcast/etc calculator
  20. [20]RFC 4632: Classless Inter-domain Routing (CIDR)
  21. [21]RFC 1918: Address Allocation for Private Internets
  22. [22]sysctl(8) - configure kernel parameters at runtime
  23. [23]IP Sysctl
  24. [24]nmcli - command-line tool for controlling NetworkManager
  25. [25]networkctl(1) - Query or modify the status of network links
  26. [26]journalctl(1) - Print log entries from the systemd journal
  27. [27]RFC 2131: Dynamic Host Configuration Protocol
  28. [28]resolvectl(1) - Resolve domain names, IPV4 and IPv6 addresses, DNS resource records, and services; introspect and reconfigure the DNS resolver
  29. [29]getent(1) - get entries from Name Service Switch libraries
  30. [30]resolv.conf(5) - resolver configuration file
  31. [31]hosts(5) - static table lookup for hostnames
  32. [32]tracepath(8) - traces path to a network host discovering MTU along this path
  33. [33]RFC 792: Internet Control Message Protocol
  34. [34]icmp(7) - Linux IPv4 ICMP kernel module.
  35. [35]traceroute(8) - print the route packets trace to network host
  36. [36]netstat(8) - print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
  37. [37]nft(8) - administration tool of the nftables framework
  38. [38]iptables(8) - iptables/ip6tables — administration tool for IPv4/IPv6 packet filtering and NAT
  39. [39]iptables-save(8) - iptables-save — dump iptables rules ip6tables-save — dump iptables rules
  40. [40]ufw(8) - program for managing a netfilter firewall
  41. [41]tcpdump(1) man page
  42. [42]pcap-filter(7) man page
  43. [43]tshark(1) - dump and analyze network traffic
  44. [44]ssh-keygen(1) - OpenSSH authentication key utility
  45. [45]ssh-copy-id(1) - use locally available keys to authorise logins on a remote machine
  46. [46]ssh_config(5) - OpenSSH client configuration file
  47. [47]scp(1) - OpenSSH secure file copy
  48. [48]sftp(1) - OpenSSH secure file transfer
  49. [49]rsync(1) - a fast, versatile, remote (and local) file-copying tool
  50. [50]wget(1) - the non-interactive network downloader