Chapterبەش 8 · Lectureوانە 8.3

Windows Network Commandsفەرمانەکانی ڕایەڵە لە Windows

The Windows commands that answer everyday network questions: ipconfig and ipconfig /all (the Physical Address is the MAC), /release and /renew, the DNS cache and nslookup, hostname and getmac, arp -a, route print/add/delete/change with -p, netstat -ano with tasklist, net view and net use (error 85), the PowerShell cmdlets Get-NetIPConfiguration, Test-NetConnection and Resolve-DnsName, and the Linux and macOS equivalents.

ئەو Windows کە وەڵامی پرسیارە ڕۆژانەکانی دەدەنەوە: ipconfig و ⁦ipconfig /all⁩ (دێڕی Physical Address هەمان )، /release و /renew، DNS و nslookup، hostname و getmac، ⁦arp -a⁩، ⁦route print/add/delete/change⁩ بە -p، ⁦netstat -ano⁩ لەگەڵ tasklist، net view و net use (هەڵەی ⁦85⁩)، cmdletـەکانی ⁦PowerShell: Get-NetIPConfiguration⁩، ⁦Test-NetConnection⁩ و ⁦Resolve-DnsName⁩ و هاوتاکانیان لە Linux و macOS.

16 min read18 خولەک خوێندنەوە · 17 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Choose the right command for a network question and run it with or without administrator rights as needed.
  • Read ipconfig /all, find the MAC address and the DHCP lease, and renew an address.
  • Read arp -a and route print, and add, change and delete a route safely.
  • Find the program behind a port with netstat -ano and map a shared folder with net use.
  • Use the PowerShell, Linux and macOS equivalents.
  • فەرمانی گونجاو بۆ پرسیارێکی هەڵبژێریت و بە پێی پێویست بە مافی بەڕێوەبەر یان بەبێ ئەو کاری پێ بکەیت.
  • ⁦ipconfig /all⁩ بخوێنیتەوە، و بدۆزیتەوە و ناونیشانێک نوێ بکەیتەوە.
  • ⁦arp -a⁩ و route print بخوێنیتەوە و ڕێگایەک بە سەلامەتی زیاد بکەیت، بگۆڕیت و بسڕیتەوە.
  • بە ⁦netstat -ano⁩ ئەو بدۆزیتەوە کە لە پشت و بە net use نەخشە بکەیت.
  • هاوتاکانی PowerShell، Linux و macOS بەکاربهێنیت.

Your network toolboxسندووقی ئامرازەکانی ڕایەڵەکەت

When a network “does not work”, a few short commands tell you where the problem is: your own settings, the path, a neighbour, a program or a name. They run in Command Prompt or PowerShell, usually inside Windows Terminal (Command Prompt and PowerShell). Most only read information; a few change settings and need Run as administrator.

کاتێک «کار ناکات»، چەند فەرمانێکی کورت پێت دەڵێن کێشەکە لە کوێیە: ڕێکخستنەکانی خۆت، ڕێگاکە، دراوسێیەک، یان ناوێک. لە Command Prompt یان PowerShell کار دەکەن، زۆرجار لە ناو Windows Terminal (Command Prompt و PowerShell). زۆربەیان تەنیا زانیاری دەخوێننەوە؛ هەندێکیان ڕێکخستن دەگۆڕن و پێویستیان بە Run as administrator هەیە.

Nine cards, each a question and its command: my IP address, mask and gateway — ipconfig; my MAC, DHCP lease and DNS servers — ipconfig /all; what this computer is called — hostname; can I reach it and which way — ping and tracert; which MAC this neighbour has — arp -a; where my packets go — route print; which programs talk or listen — netstat -ano; which address a name has — nslookup; shared folders and mapping one as a drive — net view and net use.نۆ کارت، هەریەکەیان پرسیارێک و فەرمانەکەی: ناونیشانی IP، ماسک و دەروازەی بنەڕەتییەکەم — ipconfig؛ ناونیشانی MAC، کرێی DHCP و ڕاژەکارەکانی DNS — ipconfig /all؛ ناوی ئەم کۆمپیوتەرە چییە — hostname؛ دەگەمە ئەوێ و بە کام ڕێگادا — ping و tracert؛ ئەم دراوسێیە کام MACـی هەیە — arp -a؛ پاکێتەکانم بۆ کوێ دەچن — route print؛ کام بەرنامە قسە دەکات یان گوێ دەگرێت — netstat -ano؛ ئەم ناوە کام ناونیشانی هەیە — nslookup؛ فۆڵدەرە هاوبەشەکان و کردنی یەکێکیان بە درایڤ — net view و net use.
Which command answers which question.کام فەرمان وەڵامی کام پرسیار دەداتەوە.CêIT

ping and tracert have their own lesson: reading a ping, when ping fails, reading a tracert and pathping. Remember only that Windows ping sends 4 echo requests of 32 bytes by default (-n and -l change them, -t keeps going until Ctrl+C), while Linux and macOS ping until you stop them.

ping و tracert وانەی خۆیان هەیە: خوێندنەوەی پینگێک، کاتێک پینگ سەرناکەوێت، خوێندنەوەی tracert و pathping. تەنیا لەبیرت بێت کە pingـی Windows بە بنەڕەت 4 داواکاریی echo بە ⁦32⁩ دەنێرێت (-n و -l دەیانگۆڕن، -t بەردەوام دەبێت تا ⁦Ctrl+C⁩)، لە کاتێکدا Linux و macOS تا ڕایاندەگریت دەکەن.

ipconfig: your own settingsipconfig: ڕێکخستنەکانی خۆت

ipconfig is a Windows command-line tool (MS-DOS never had it: MS-DOS had no built-in TCP/IP). It shows the TCP/IP settings your computer has received for every network adapter and lets you renew them. Alone it gives the short version: for each adapter its IPv4 address, subnet mask and default gateway — for example IPv4 192.168.1.23, mask 255.255.255.0 — plus IPv6 lines and “Media disconnected” for an adapter with no cable or Wi-Fi.

ipconfig ئامرازێکی Windowsـە (⁦MS-DOS⁩ هەرگیز نەیبووە: ⁦MS-DOS⁩ تێدا نەبوو). ڕێکخستنەکانی پیشان دەدات کە بۆ هەر وەریگرتووە و ڕێگەت پێ دەدات نوێیان بکەیتەوە. بە تەنیا وەشانە کورتەکە دەدات: بۆ هەر کارتێک ناونیشانی ، و — بۆ نموونە ⁦IPv4 192.168.1.23⁩، ماسکی ⁦255.255.255.0⁩ — لەگەڵ دێڕەکانی و «Media disconnected» بۆ کارتێک کە کێبڵ یان ⁦Wi-Fi⁩ـی نییە.

Windows 11, Command Prompt⁦Windows 11⁩، Command PromptBAT
ipconfig
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

Run it in Command Prompt or PowerShell; no administrator needed.

لە Command Prompt یان PowerShell کاری پێ بکە؛ بەڕێوەبەر پێویست نییە.

The ipconfig options you will use.ئەو هەڵبژاردانەی ipconfig کە بەکاریان دەهێنیت.
OptionهەڵبژاردەWhat it doesچی دەکات
ipconfig /allevery setting of every adapter: MAC, DHCP, lease, DNS serversهەموو ڕێکخستنێکی هەموو کارتێک: MAC، ، ، DNS
ipconfig /releasegives the DHCP address back (administrator)ناونیشانی دەگەڕێنێتەوە (بەڕێوەبەر)
ipconfig /renewasks DHCP for an address again (administrator)دووپاتە داوای ناونیشان لە دەکات (بەڕێوەبەر)
ipconfig /displaydnsshows the DNS cache DNS پیشان دەدات
ipconfig /flushdnsempties the DNS cache DNS بەتاڵ دەکاتەوە
ipconfig /release6, /renew6the same for DHCPv6هەمان کار بۆ ⁦DHCPv6⁩
ipconfig /?helpیارمەتی

The three IPv6 lines are explained in What ipconfig shows.

سێ دێڕەکەی لە ipconfig چی پیشان دەداتدا ڕوون کراونەتەوە.

ipconfig: your own settingsipconfig: ڕێکخستنەکانی خۆت

ipconfig /all: the full story⁦ipconfig /all⁩: هەموو چیرۆکەکە

ipconfig /all adds everything else. Host Name is the computer’s name. Each adapter shows a Description (the card), the Physical Address — this is the adapter’s MAC address, 48 bits written as six pairs of hex digits —, DHCP Enabled (Yes = the address came from DHCP), Lease Obtained and Lease Expires, the DHCP Server that lent it and the DNS Servers that answer names. Older Windows versions also listed WINS servers, a name service that is no longer used.

ipconfig /all هەموو شتەکانی تر زیاد دەکات. Host Name ناوی . هەر کارتێک Description (کارتەکە)، Physical Address — ئەمە ـی کارتەکەیە، ⁦48⁩ کە بە شەش جووت ژمارەی hex نووسراوە —، DHCP Enabled (Yes = ناونیشانەکە لە هاتووە)، Lease Obtained و Lease Expires، ئەو DHCP Serverـەی بەقەرزی داوە و ئەو DNS Serversـانەی وەڵامی ناوەکان دەدەنەوە پیشان دەدات. وەشانە کۆنەکانی Windows WINSـیشیان لیست دەکرد، خزمەتگوزارییەکی ناو کە ئیتر بەکار نایەت.

A Windows 11 Command Prompt mock of ipconfig /all for the Wi-Fi adapter of Aram-PC, with four groups highlighted: Host Name Aram-PC; Physical Address 00-00-5E-00-53-1A (the MAC address, 48 bits, one per adapter); DHCP Enabled Yes with Lease Obtained Saturday, November 7, 2026 8:12:00 AM and Lease Expires Sunday, November 8, 2026 8:12:00 AM; DHCP Server and DNS Servers 192.168.1.1, the home router. Also shown: IPv4 Address 192.168.1.23, Subnet Mask 255.255.255.0, Default Gateway 192.168.1.1.وێنەیەکی دروستکراوی Command Promptـی Windows 11 بۆ ipconfig /allـی کارتی Wi-Fiـی Aram-PC، بە چوار کۆمەڵەی دیاریکراو: Host Name Aram-PC؛ Physical Address 00-00-5E-00-53-1A (ناونیشانی MAC، 48 بیت، بۆ هەر کارتێک یەکێک)؛ DHCP Enabled Yes لەگەڵ Lease Obtained شەممە 7ی نۆڤەمبەری 2026 و Lease Expires یەکشەممە 8ی نۆڤەمبەری 2026؛ DHCP Server و DNS Servers 192.168.1.1، ڕێدۆزی ماڵەوە. هەروەها: IPv4 Address 192.168.1.23، Subnet Mask 255.255.255.0، Default Gateway 192.168.1.1.
ipconfig /all: the Physical Address is the MAC address.⁦ipconfig /all: Physical Address⁩ هەمان .CêIT

On a two-PC lab network with no router you may see a static address and an empty gateway (DHCP Enabled: No; IPv4 10.1.1.2; Default Gateway blank): perfectly normal there. Do not post screenshots of ipconfig /all from a real computer: the MAC address and the host name identify it — see See your own addresses.

لەسەر تاقیگەیی دوو بێ ، لەوانەیە و بەتاڵ ببینیت (⁦DHCP Enabled: No⁩؛ ⁦IPv4 10.1.1.2⁩؛ Default Gateway بەتاڵ): لەوێدا تەواو ئاساییە. ipconfig /all لە ڕاستەقینەوە بڵاو مەکەرەوە: و دەیناسێنن — بڕوانە ناونیشانەکانی خۆت ببینە.

ipconfig /release and /renew⁦ipconfig /release⁩ و /renew

ipconfig /release gives your DHCP address back to the server; ipconfig /renew asks for one again with the four DHCP messages. Use them when a computer kept an old or wrong address, for example after the router was changed. Both need a Command Prompt opened with Run as administrator — otherwise Windows answers “The requested operation requires elevation.” Never run /release over a remote connection: it cuts you off.

ipconfig /release ناونیشانی بۆ دەگەڕێنێتەوە؛ ipconfig /renew بە چوار پەیامەکەی دووپاتە داوای یەکێک دەکات. کاتێک ناونیشانێکی کۆن یان هەڵەی هێشتووەتەوە بەکاریان بهێنە، بۆ نموونە دوای گۆڕینی . هەردووکیان پێویستیان بە Command Promptـێکە کە بە Run as administrator کرابێتەوە — دەنا Windows وەڵام دەداتەوە «The requested operation requires elevation.» هەرگیز /release بە پەیوەندییەکی دوورەوە کار پێ مەکە: پەیوەندییەکەت دەبڕێت.

Four frames in an administrator Command Prompt. 1: ipconfig shows the Wi-Fi adapter with IPv4 Address 192.168.1.23, mask 255.255.255.0 and gateway 192.168.1.1, an address on loan from the home router’s DHCP server. 2: after ipconfig /release only a link-local IPv6 line and an empty Default Gateway are left — no IPv4 address, no Internet. 3: ipconfig /renew runs Discover, Offer, Request and Acknowledge between the PC and the DHCP server. 4: the address 192.168.1.23 and the gateway are back, usually the same address because the server remembers the computer.
Four frames in an administrator Command Prompt. 1: ipconfig shows the Wi-Fi adapter with IPv4 Address 192.168.1.23, mask 255.255.255.0 and gateway 192.168.1.1, an address on loan from the home router’s DHCP server. 2: after ipconfig /release only a link-local IPv6 line and an empty Default Gateway are left — no IPv4 address, no Internet. 3: ipconfig /renew runs Discover, Offer, Request and Acknowledge between the PC and the DHCP server. 4: the address 192.168.1.23 and the gateway are back, usually the same address because the server remembers the computer.
The address disappears with /release and comes back with /renew.ناونیشانەکە بە /release ون دەبێت و بە /renew دەگەڕێتەوە.CêIT

How DORA and leases work is in DORA: four messages and See and control your lease. If /renew fails and you get 169.254.x.x, no DHCP server answered — APIPA.

DORA و چۆن کار دەکەن لە DORA: چوار پەیام و کرێی DHCPـەکەت ببینە و کۆنترۆڵی بکەدان. ئەگەر /renew سەرنەکەوت و ⁦169.254.x.x⁩ وەرگرت، هیچ وەڵامی نەداوەتەوە — APIPA.

Names: the DNS cache and nslookupناوەکان: کاشی DNS و nslookup

Windows remembers recent name answers in its DNS cache. ipconfig /displaydns lists it and ipconfig /flushdns empties it — useful when a website has moved but your computer still goes to the old address. nslookup <name> skips the cache and asks the DNS server directly, so it shows what the server says right now. The details are in See and clear your computer’s DNS cache and Ask DNS yourself: nslookup.

Windows وەڵامە نوێیەکانی ناو لە DNSـدا لەبیر دەکات. ipconfig /displaydns لیستی دەکات و ipconfig /flushdns بەتاڵی دەکاتەوە — بەسوودە کاتێک گوازراوەتەوە بەڵام هێشتا دەچێتە ناونیشانە کۆنەکە. nslookup <name> تێدەپەڕێنێت و ڕاستەوخۆ لە DNS دەپرسێت، بۆیە پیشان دەدات ئێستا چی دەڵێت. وردەکارییەکان لە کاشی DNSـی کۆمپیوتەرەکەت ببینە و پاکی بکەرەوە و خۆت لە DNS بپرسە: nslookupدان.

Aram-PC with its DNS cache in memory: ipconfig /displaydns shows it, ipconfig /flushdns empties it, and it answers again and again until the TTL ends. A browser or ping asks the cache first; only a miss goes to the DNS server. nslookup skips the cache and asks the DNS server directly. Arrows: a query to the DNS server 192.168.1.1 (the home router) and an answer with a TTL coming back.Aram-PC بە کاشی DNSـەکەیەوە لە بیرگەدا: ipconfig /displaydns پیشانی دەدات، ipconfig /flushdns بەتاڵی دەکاتەوە و تا TTL تەواو دەبێت وەڵام دەداتەوە. تۆڕگەڕ یان پینگ یەکەم جار لە کاشەکە دەپرسێت؛ تەنیا ئەگەر تێیدا نەبوو دەچێتە ڕاژەکاری DNS. nslookup کاشەکە تێدەپەڕێنێت و ڕاستەوخۆ لە ڕاژەکاری DNS دەپرسێت. تیرەکان: پرسێک بۆ ڕاژەکاری DNSـی 192.168.1.1 (ڕێدۆزی ماڵەوە) و وەڵامێک بە TTLـەوە دەگەڕێتەوە.
The cache answers first; nslookup asks the server. یەکەم جار وەڵام دەداتەوە؛ nslookup لە دەپرسێت.CêIT

hostname and getmachostname و getmac

hostname prints the computer’s name and nothing else — the name other computers use in \\Aram-PC or in a ping. getmac lists the MAC address of every network adapter; with getmac /v you also see the connection name (Wi-Fi, Ethernet) and the card. Three commands show MAC addresses, and it pays to know whose:

hostname ناوی چاپ دەکات و هیچی تر — ئەو ناوەی تر لە \\Aram-PC یان لە بەکاری دەهێنن. getmac هەموو لیست دەکات؛ بە getmac /v ناوی پەیوەندییەکە (⁦Wi-Fi⁩، Ethernet) و کارتەکەش دەبینیت. سێ فەرمان پیشان دەدەن و باشە بزانیت هی کێن:

Two quick answersدوو وەڵامی خێراBAT
hostname
getmac /v
Three panels. getmac: your adapters only, one line per adapter (00-00-5E-00-53-1A on Wi-Fi, 00-00-5E-00-53-2B disconnected). ipconfig /all: yours, with all settings — the Physical Address next to the IPv4 address and DHCP. arp -a: your neighbours’ MAC addresses (the gateway 192.168.1.1 and 192.168.1.40), learned by ARP, not your own.سێ بەش. getmac: تەنیا کارتەکانی ڕایەڵەی خۆت، بۆ هەر کارتێک دێڕێک (00-00-5E-00-53-1A لەسەر Wi-Fi، 00-00-5E-00-53-2B پچڕاو). ipconfig /all: هی خۆت، لەگەڵ هەموو ڕێکخستنەکان — Physical Address لە تەنیشت ناونیشانی IPv4 و DHCP. arp -a: ناونیشانەکانی MACـی دراوسێکانت (دەروازەی بنەڕەتیی 192.168.1.1 و 192.168.1.40)، بە ARP فێربووە، هی خۆت نییە.
Three ways to see MAC addresses — and whose they are.سێ ڕێگا بۆ بینینی — و هی کێن.CêIT

arp -a: who is next to you⁦arp -a⁩: کێ لە تەنیشتتە

arp -a prints the ARP cache: the IP-to-MAC pairs your computer has learned on each network. Each block starts with Interface, your own address on that network. dynamic entries were learned by ARP and disappear after a while; static ones are broadcast and multicast addresses whose MAC addresses Windows works out itself. arp -d * empties the cache (administrator), and the entries come back as soon as the computer talks to its neighbours again.

arp -a چاپ دەکات: ئەو جووتە ⁦IP–MAC⁩ـانەی لە هەر فێریان بووە. هەر بەشێک بە Interface دەست پێ دەکات، ناونیشانی خۆت لەو . تۆمارە dynamicـەکان بە فێر بوون و دوای ماوەیەک ون دەبن؛ staticـەکان ناونیشانی و کە Windows خۆی حیساب دەکات. arp -d * بەتاڵ دەکاتەوە (بەڕێوەبەر) و تۆمارەکان هەر کە دووپاتە لەگەڵ دراوسێکانی قسە بکات دەگەڕێنەوە.

A Command Prompt mock of arp -a. Interface: 192.168.1.23 --- 0xc, then a table: 192.168.1.1 and 192.168.1.40 with MAC addresses 00-00-5e-00-53-01 and 00-00-5e-00-53-2c, both dynamic; 192.168.1.255, 224.0.0.22, 239.255.255.250 and 255.255.255.255 with calculated MAC addresses, all static. Notes: Interface is your own address, one block per adapter; dynamic means learned by ARP (the gateway and a printer) and ages out; static means broadcast and multicast, worked out and never asked for.وێنەیەکی دروستکراوی Command Prompt بۆ arp -a. Interface: 192.168.1.23 --- 0xc، پاشان خشتەیەک: 192.168.1.1 و 192.168.1.40 بە ناونیشانەکانی MACـی 00-00-5e-00-53-01 و 00-00-5e-00-53-2c، هەردووکیان dynamic؛ 192.168.1.255، 224.0.0.22، 239.255.255.250 و 255.255.255.255 بە MACـی حیسابکراو، هەموویان static. تێبینییەکان: Interface ناونیشانی خۆتە، بۆ هەر کارتێک بەشێک؛ dynamic واتە بە ARP فێربووە (دەروازەی بنەڕەتی و چاپەرێک) و کاتی بەسەردا دێت؛ static واتە پەخشکردن و فرەپەخش، حیساب دەکرێن و هەرگیز ناپرسرێن.
arp -a: learned neighbours (dynamic) and calculated addresses (static).⁦arp -a⁩: دراوسێی فێربوو ⁦(dynamic)⁩ و ناونیشانی حیسابکراو ⁦(static)⁩.CêIT

How ARP fills this table, and how long an entry lives, is in The ARP cache.

ARP چۆن ئەم خشتەیە پڕ دەکاتەوە و تۆمارێک چەند دەمێنێت لە کاشی ARPدایە.

route: your computer’s routing tableroute: خشتەی ڕێدۆزیی کۆمپیوتەرەکەت

route shows and changes your computer’s own routing table. route print (the same as netstat -r) prints it; route print 10.* prints only the routes that begin with 10. The line 0.0.0.0 / 0.0.0.0 is the default route, made from your default gateway: “everything I have no better route for goes to 192.168.1.1”. How to read the other lines is in Your computer has a routing table too.

route خودی پیشان دەدات و دەیگۆڕێت. route print (هەمان netstat -r) چاپی دەکات؛ route print 10.* تەنیا ئەو ڕێگایانە چاپ دەکات کە بە ⁦10⁩ دەست پێ دەکەن. دێڕی ⁦0.0.0.0 / 0.0.0.0⁩ کە لە دروست بووە: «هەر شتێک ڕێگایەکی باشترم بۆی نییە بۆ ⁦192.168.1.1⁩ دەچێت». چۆنیەتیی خوێندنەوەی دێڕەکانی تر لە کۆمپیوتەرەکەت خشتەی ڕێدۆزییەکی هەیەدایە.

An administrator Command Prompt mock. route -p add 10.41.0.0 mask 255.255.0.0 192.168.1.254 metric 5 answers OK!. Then route print -4 shows the active routes: 0.0.0.0 via 192.168.1.1 (the default route, made by the default gateway), the new 10.41.0.0/255.255.0.0 via 192.168.1.254 with metric 40, and 192.168.1.0 on-link; and under Persistent Routes the new route with metric 5. Notes: add, delete and change need an administrator prompt; -p makes the route persistent, kept after a restart.وێنەیەکی دروستکراوی Command Promptـی بەڕێوەبەر. route -p add 10.41.0.0 mask 255.255.0.0 192.168.1.254 metric 5 وەڵام دەداتەوە OK!. پاشان route print -4 ڕێگا چالاکەکان پیشان دەدات: 0.0.0.0 لە ڕێی 192.168.1.1 (ڕێگەی بنەڕەتی، لە دەروازەی بنەڕەتییەوە دروست بووە)، 10.41.0.0/255.255.0.0ـی نوێ لە ڕێی 192.168.1.254 بە metricـی 40 و 192.168.1.0 بە On-link؛ و لە ژێر Persistent Routes ڕێگا نوێیەکە بە metricـی 5. تێبینییەکان: add، delete و change پێویستیان بە Command Promptـی بەڕێوەبەرە؛ -p ڕێگاکە هەمیشەیی دەکات و دوای دەستپێکردنەوە دەمێنێتەوە.
Adding a persistent route, then finding it in route print.زیادکردنی ڕێگایەکی هەمیشەیی، پاشان دۆزینەوەی لە route print.CêIT

Why add a route? Imagine a second router in your LAN, 192.168.1.254, that leads to a lab network 10.41.0.0/16. Your gateway does not know that network, so you tell your computer directly. In the active list the metric is 40, not 5: Windows adds the interface’s own metric to the one you gave.

بۆچی ڕێگایەک زیاد بکەیت؟ وای دابنێ دووەم لە هەیە، ⁦192.168.1.254⁩، کە دەچێتە تاقیگە ⁦10.41.0.0/16⁩. ئەو ناناسێت، بۆیە ڕاستەوخۆ بە دەڵێیت. لە لیستی چالاکدا ⁦metric 40⁩ـە نەک ⁦5: Windows metric⁩ـی خودی کارتەکە دەخاتە سەر ئەوەی تۆ دات.

route: your computer’s routing tableroute: خشتەی ڕێدۆزیی کۆمپیوتەرەکەت

route add, delete and changeroute add، delete و change

The general form is route [-p] add|delete|change|print destination mask netmask gateway [metric n] [if index]. These examples change real routing, so use them only on a lab computer:

شێوەی گشتی route [-p] add|delete|change|print destination mask netmask gateway [metric n] [if index]ـە. ئەم نموونانە ڕێدۆزیی ڕاستەقینە دەگۆڕن، بۆیە تەنیا لەسەر تاقیگە بەکاریان بهێنە:

route examples (administrator Command Prompt)نموونەکانی route لە Command Promptـی بەڕێوەبەرداBAT
route print
route print 10.*
route add 0.0.0.0 mask 0.0.0.0 192.168.12.1
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1
route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7
route change 10.41.0.0 mask 255.255.0.0 10.27.0.25
route delete 10.41.0.0 mask 255.255.0.0
route delete 10.*
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1-2

Print the whole table, or only routes that begin with 10.

هەموو خشتەکە چاپ بکە، یان تەنیا ئەو ڕێگایانەی بە ⁦10⁩ دەست پێ دەکەن.

Lineدێڕی 3

A default route through 192.168.12.1 (what the default gateway setting does for you).

لە ڕێی ⁦192.168.12.1⁩ (ئەوەی ڕێکخستنی بۆت دەکات).

Lineدێڕی 4

A route to 10.41.0.0/16 through the next hop 10.27.0.1 — gone after a restart.

ڕێگایەک بۆ ⁦10.41.0.0/16⁩ لە ڕێی ⁦10.27.0.1⁩ — دوای ون دەبێت.

Lineدێڕی 5

The same route made persistent with -p, with metric 7.

هەمان ڕێگا بە -p هەمیشەیی کراوە، بە metricـی 7.

Lineدێڕی 6

Change its next hop from 10.27.0.1 to 10.27.0.25.

لە ⁦10.27.0.1⁩ـەوە بگۆڕە بۆ ⁦10.27.0.25⁩.

Lineدێڕی 7-8

Delete that route, or every route that begins with 10.

ئەو ڕێگایە بسڕەوە، یان هەموو ئەو ڕێگایانەی بە ⁦10⁩ دەست پێ دەکەن.

The command route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7 cut into labelled pieces: route = the command; -p = keep after restart; add = add, delete, change or print; 10.41.0.0 = destination network; mask 255.255.0.0 = its subnet mask (/16); 10.27.0.1 = gateway, the next hop; metric 7 = cost, the lowest wins. Meaning: to reach 10.41.0.0/16, hand the packet to the router 10.27.0.1 — and remember it. Needs an administrator Command Prompt.فەرمانی route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7 بە پارچەی ناونراو: route = فەرمانەکە؛ -p = دوای دەستپێکردنەوە بمێنێتەوە؛ add = زیادکردن، سڕینەوە، گۆڕین یان چاپکردن؛ 10.41.0.0 = ڕایەڵەی مەبەست؛ mask 255.255.0.0 = ماسکی ژێرڕایەڵەکەی (/16)؛ 10.27.0.1 = gateway، بازی دواتر؛ metric 7 = تێچوو، کەمترین دەباتەوە. واتا: بۆ گەیشتن بە 10.41.0.0/16، پاکێتەکە بدە بە ڕێدۆزی 10.27.0.1 — و لەبیری بێت. Command Promptـی بەڕێوەبەری پێویستە.
Reading a route command piece by piece.خوێندنەوەی فەرمانێکی route پارچە بە پارچە.CêIT

netstat -ano: which program uses which port⁦netstat -ano⁩: کام بەرنامە کام پۆرت بەکار دەهێنێت

netstat -ano lists every socket: -a all connections and listening ports, -n numbers instead of names (faster), -o the PID — the number of the process that owns it. tasklist /fi "PID eq 7340" turns that number into a program name (Task Manager shows the PID too). netstat -b shows the program names directly but needs an administrator prompt. Add | findstr LISTENING or | findstr :443 to keep only the lines you want.

netstat -ano هەموو لیست دەکات: -a هەموو پەیوەندی و گوێگرتووەکان، -n ژمارە لەبری ناو (خێراترە)، -o PID — ژمارەی ئەو خاوەنییەتی. tasklist /fi "PID eq 7340" ئەو ژمارەیە دەکاتە ناوی (Task Managerـیش PID پیشان دەدات). netstat -b ڕاستەوخۆ ناوی پیشان دەدات بەڵام Command Promptـی بەڕێوەبەری پێویستە. | findstr LISTENING یان | findstr :443 زیاد بکە بۆ ئەوەی تەنیا ئەو دێڕانەی دەتەوێت بمێننەوە.

A Command Prompt mock. netstat -ano | findstr LISTENING lists four TCP lines: 0.0.0.0:135 with PID 1044, 0.0.0.0:445 with PID 4, 127.0.0.1:8080 with PID 7340 and [::]:445 with PID 4. Then tasklist /fi "PID eq 7340" shows python.exe, PID 7340, Console, session 1, 25,112 K. Notes: the last column is the PID, the process that owns the port; tasklist turns a PID into a program name; port 445 with PID 4 is System, Windows file sharing (SMB); 127.0.0.1 means only this computer, 0.0.0.0 every address.وێنەیەکی دروستکراوی Command Prompt. netstat -ano | findstr LISTENING چوار دێڕی TCP لیست دەکات: 0.0.0.0:135 بە PID 1044، 0.0.0.0:445 بە PID 4، 127.0.0.1:8080 بە PID 7340 و [::]:445 بە PID 4. پاشان tasklist /fi "PID eq 7340" پیشان دەدات python.exe، PID 7340، Console، session 1، 25,112 K. تێبینییەکان: دوایین ستوون PIDـە، ئەو پرۆسێسەی پۆرتەکەی هەیە؛ tasklist PID دەکاتە ناوی بەرنامەیەک؛ پۆرتی 445 بە PID 4 Systemـە، هاوبەشکردنی فایلی Windows (SMB)؛ 127.0.0.1 واتە تەنیا ئەم کۆمپیوتەرە، 0.0.0.0 هەموو ناونیشانەکان.
From a listening port to the program behind it.لە گوێگرتووەوە بۆ ئەو لە پشتیەوەیە.CêIT

Here a student’s Python test server listens on 127.0.0.1:8080, so only this computer can reach it. What every column and TCP state means is in Seeing your sockets with netstat and TCP states in netstat.

لێرەدا تاقیکردنەوەی Pythonـی قوتابییەک لەسەر ⁦127.0.0.1:8080⁩ گوێ دەگرێت، بۆیە تەنیا ئەم دەتوانێت پێی بگات. واتای هەموو ستوونێک و دۆخەکانی لە بینینی سۆکێتەکانت بە netstat و دۆخەکانی TCP لە netstatدان.

net view and net use: shared foldersnet view و net use: فۆڵدەرە هاوبەشەکان

net view \\Aram-PC lists the folders and printers that Aram-PC shares. net view alone (and net view /domain:sales, the computers of the sales workgroup) relied on the old Computer Browser service, which needs SMBv1 — not installed in Windows 11 — so today it usually ends with System error 6118; open Network in File Explorer instead. net use connects to a share: net use h: \\Aram-PC\Lessons maps it as drive H:, a network drive that appears in This PC next to your disks. Alone, net use lists your connections.

net view \\Aram-PC ئەو فۆڵدەر و لیست دەکات کە ⁦Aram-PC⁩ هاوبەشیان دەکات. net view بە تەنیا (و net view /domain:sales، sales) پشتی بە خزمەتگوزاریی کۆنی Computer Browser دەبەست کە ⁦SMBv1⁩ـی پێویستە — لە ⁦Windows 11⁩ـدا دانەمەزراوە — بۆیە ئەمڕۆ زۆرجار بە ⁦System error 6118⁩ کۆتایی دێت؛ لەبری ئەوە Network لە File Explorer بکەرەوە. net use بە هاوبەشێکەوە دەبەستێتەوە: net use h: \\Aram-PC\Lessons دەیکات بە درایڤی H:، کە لە This PC لە تەنیشت دیسکەکانتەوە دەردەکەوێت. بە تەنیا، net use پەیوەندییەکانت لیست دەکات.

Left, a Command Prompt mock for the user Shilan: net use e: (the Lessons share on Aram-PC) gives System error 85 has occurred — The local device name is already in use; net use h: with the same share gives The command completed successfully; net use lists the connection: OK, H:, the Lessons share on Aram-PC, Microsoft Windows Network. Right, File Explorer → This PC: Local Disk (C:), DVD Drive (E:) and under Network locations the Lessons drive of Aram-PC as H:, a network drive. Note: E: was taken by the DVD drive, hence error 85.لە چەپ، وێنەیەکی دروستکراوی Command Prompt بۆ بەکارهێنەری شیلان: net use e: (هاوبەشی Lessons لەسەر Aram-PC) وەڵام دەداتەوە System error 85 has occurred — The local device name is already in use؛ net use h: بە هەمان هاوبەش وەڵام دەداتەوە The command completed successfully؛ net use پەیوەندییەکە لیست دەکات: OK، H:، هاوبەشی Lessons لەسەر Aram-PC، Microsoft Windows Network. لە ڕاست، File Explorer › This PC: Local Disk (C:)، DVD Drive (E:) و لە ژێر Network locations، درایڤی Lessonsـی Aram-PC وەک H:، درایڤێکی ڕایەڵە. تێبینی: E: هی درایڤی DVD بوو، بۆیە هەڵەی 85.
Error 85, then success: the share becomes drive H:.هەڵەی ⁦85⁩، پاشان سەرکەوتن: هاوبەشەکە دەبێتە درایڤی H:.CêIT

System error 85 — “The local device name is already in use” means the drive letter is taken: here E: is the DVD drive. Choose a free letter — or write *, and Windows takes the last free letter of the alphabet, usually Z: — as in net use * \\Aram-PC\Lessons.

⁦System error 85⁩ — «The local device name is already in use» واتە گیراوە: لێرەدا E: درایڤی DVDـیە. پیتێکی بەتاڵ هەڵبژێرە — یان * بنووسە و Windows دوایین پیتی بەتاڵی ئەلفوبێ هەڵدەبژێرێت، زۆرجار Z: — وەک net use * \\Aram-PC\Lessons.

net view and net use: shared foldersnet view و net use: فۆڵدەرە هاوبەشەکان

More net use: another user, disconnect, reconnectnet useـی زیاتر: بەکارهێنەرێکی تر، پچڕاندن، دووپاتە بەستنەوە

net use optionsهەڵبژاردەکانی net useBAT
net use d: \\server\share /user:Accounts\Dan
net use f: \\financial\public /delete
net use k: "\\financial 2\memos"
net use h: \\Aram-PC\Lessons /persistent:yes
net use * /delete
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 1

Connect as the user Dan of the Accounts domain; Windows asks for his password.

وەک بەکارهێنەری Dan لە دۆمەینی Accounts ببەستەوە؛ Windows دەپرسێت.

Lineدێڕی 2

Disconnect drive F: from \\financial\public.

درایڤی F: لە \\financial\public بپچڕێنە.

Lineدێڕی 3

A server name with a space: put quotes around the whole path.

ناوی بە بۆشاییەوە: دوو کەوانە لە دەوری هەموو ڕێڕەوەکە دابنێ.

Lineدێڕی 4

Reconnect H: automatically at every sign-in.

H: لە هەموو چوونەژوورەوەیەکدا خۆکارانە دووپاتە ببەستەوە.

Lineدێڕی 5

Disconnect all network drives.

هەموو بپچڕێنە.

Two details trip people up: a space after the drive letter is required (d: \\server, not d:\\server), and a name with a space needs the quotes around the whole path. Sharing the folder in the first place — and why SMBv1 stays off — is the next lesson, which also maps the drive from File Explorer: Map the share to a drive letter.

دوو وردەکاری خەڵک هەڵە دەخەن: بۆشایی لە دوای پێویستە (d: \\server، نەک d:\\server) و ناوێک بە بۆشاییەوە پێویستی بە دوو کەوانە لە دەوری هەموو ڕێڕەوەکەیە. خودی هاوبەشکردنی فۆڵدەرەکە — و بۆچی ⁦SMBv1⁩ کوژاوە دەمێنێتەوە — وانەی داهاتووە، هاوبەشکردنی فۆڵدەر و Remote Desktop.

The same in PowerShellهەمان شت لە PowerShell

Every command above also works in PowerShell, but PowerShell has its own cmdlets that return objects you can sort and filter. Three are worth learning now: Get-NetIPConfiguration (a short ipconfig with the gateway and DNS servers), Test-NetConnection (a ping that can also test a TCP port with -Port, or trace with -TraceRoute) and Resolve-DnsName (like nslookup).

هەموو فەرمانەکانی سەرەوە لە PowerShellـیش کار دەکەن، بەڵام PowerShell cmdletـی خۆی هەیە کە ئۆبجێکت دەگەڕێننەوە و دەتوانیت ڕیزیان بکەیت و فلتەریان بکەیت. ئێستا سێیان شایەنی فێربوونن: ⁦Get-NetIPConfiguration⁩ (ipconfigـێکی کورت بە و DNS)، ⁦Test-NetConnection⁩ ( کە دەتوانێت بە -Port تاقی بکاتەوە، یان بە -TraceRoute ڕێگاکە بدۆزێتەوە) و ⁦Resolve-DnsName⁩ (وەک nslookup).

A Windows PowerShell mock. Test-NetConnection 192.168.1.40 -Port 445 returns ComputerName 192.168.1.40, RemoteAddress 192.168.1.40, RemotePort 445, InterfaceAlias Wi-Fi, SourceAddress 192.168.1.23 and TcpTestSucceeded True. Resolve-DnsName www.example.com -Type A returns a table: www.example.com, A, TTL 300, Answer, 203.0.113.10. Notes: TcpTestSucceeded True means port 445 answered — more than ping can tell you; Resolve-DnsName works like nslookup but returns objects; Get-NetIPConfiguration is a short ipconfig.وێنەیەکی دروستکراوی Windows PowerShell. Test-NetConnection 192.168.1.40 -Port 445 دەگەڕێنێتەوە ComputerName 192.168.1.40، RemoteAddress 192.168.1.40، RemotePort 445، InterfaceAlias Wi-Fi، SourceAddress 192.168.1.23 و TcpTestSucceeded True. Resolve-DnsName www.example.com -Type A خشتەیەک دەگەڕێنێتەوە: www.example.com، A، TTL 300، Answer، 203.0.113.10. تێبینییەکان: TcpTestSucceeded True واتە پۆرتی 445 وەڵامی دایەوە — زیاتر لەوەی پینگ پێت دەڵێت؛ Resolve-DnsName وەک nslookup کار دەکات بەڵام ئۆبجێکت دەگەڕێنێتەوە؛ Get-NetIPConfiguration ipconfigـێکی کورتە.
Test-NetConnection tests a port, not only a ping.⁦Test-NetConnection⁩ تاقی دەکاتەوە، نەک تەنیا .CêIT
Command Prompt commands and their PowerShell cmdlets.فەرمانەکانی Command Prompt و cmdletـە هاوتاکانیان لە PowerShell.
Command Promptلە Command PromptPowerShellلە PowerShell
ipconfigGet-NetIPConfiguration
ping 192.168.1.40Test-NetConnection 192.168.1.40
tracert example.comTest-NetConnection example.com -TraceRoute
nslookup example.comResolve-DnsName example.com
arp -aGet-NetNeighbor
route printGet-NetRoute
netstat -anoGet-NetTCPConnection
ipconfig /flushdnsClear-DnsClientCache

Linux and macOSLinux و macOS

The questions are the same on every operating system; the commands are not. ipconfig exists only on Windows. On Linux the modern tool is ip (ip addr, ip route, ip neigh); the older ifconfig is still found on some systems. macOS uses ifconfig and BSD-style commands.

پرسیارەکان لەسەر هەموو هەمانن؛ فەرمانەکان نا. ipconfig تەنیا لە Windowsـدا هەیە. لە Linuxـدا ئامرازی نوێ ipـە (ip addr، ip route، ip neigh)؛ ifconfigـی کۆنتر هێشتا لەسەر هەندێک سیستەم هەیە. macOS ifconfig و فەرمانی شێوە-BSD بەکار دەهێنێت.

Three terminals side by side answer “What is my IP address?”: Windows Command Prompt with ipconfig (IPv4 Address 192.168.1.23), Linux Terminal with ip addr (inet 192.168.1.24/24), macOS Terminal with ifconfig en0 (inet 192.168.1.25 netmask 0xffffff00). ipconfig exists only on Windows.سێ تێرمیناڵ لە تەنیشت یەک وەڵامی «ناونیشانی IPـەکەم چییە؟» دەدەنەوە: Command Promptـی Windows بە ipconfig (IPv4 Address 192.168.1.23)، تێرمیناڵی Linux بە ip addr (inet 192.168.1.24/24)، تێرمیناڵی macOS بە ifconfig en0 (inet 192.168.1.25 netmask 0xffffff00). ipconfig تەنیا لە Windowsـدا هەیە.
One question, three systems, three commands.یەک پرسیار، سێ سیستەم، سێ فەرمان.CêIT
The same jobs on Windows, Linux and macOS.هەمان کارەکان لەسەر Windows، Linux و macOS.
QuestionپرسیارWindowsLinuxmacOS
My addressesناونیشانەکانمipconfig /allip addrifconfig
Routing tableroute printip routenetstat -rn
Neighbours (ARP)دراوسێکان ()arp -aip neigharp -a
Reachable?دەگاتێ؟ping -n 4ping -c 4ping -c 4
Pathڕێگاtracerttraceroutetraceroute
Namesناوەکانnslookupdig, nslookupdig, nslookup
Socketsnetstat -anoss -tulpnnetstat -an

Common mistakesهەڵە باوەکان

Exercisesڕاهێنانەکان

ExerciseڕاهێنانRead your own computerکۆمپیوتەرەکەی خۆت بخوێنەرەوە

On your own Windows computer run hostname, ipconfig /all, arp -a and route print -4. Write down: the host name, the MAC of the adapter you use, whether DHCP is on, the lease end, the gateway, and the gateway’s MAC address. In which output did you find each one?

لەسەر Windowsـی خۆت hostname، ipconfig /all، arp -a و route print -4 کار پێ بکە. بنووسە: ، MACـی ئەو کارتەی بەکاری دەهێنیت، ئایا هەڵکراوە، کۆتاییی ، و MACـی . هەریەکەیانت لە کام دەرچوونەدا دۆزییەوە؟

Show answerوەڵامەکە پیشان بدە
  • Host name: hostname (also Host Name in ipconfig /all).
  • Your MAC, DHCP Enabled, Lease Expires, Default Gateway: ipconfig /all.
  • The gateway again as the 0.0.0.0 line: route print -4.
  • The gateway’s MAC: arp -a, the dynamic entry for the gateway’s IP address.
  • : hostname (هەروەها Host Name لە ipconfig /all).
  • MACـی خۆت، DHCP Enabled، Lease Expires، Default Gateway: ipconfig /all.
  • دووپاتە وەک دێڕی ⁦0.0.0.0⁩: route print -4.
  • MACـی : arp -a، تۆمارە dynamicـەکەی .
ExerciseڕاهێنانAn old screenshotوێنەیەکی شاشەی کۆن

An old ipconfig /all shows two adapters: “Local Area Connection” with Physical Address 00-00-5E-00-53-E1, Dhcp Enabled No, IP Address 10.1.1.2, mask 255.255.255.0 and an empty Default Gateway; and “Wireless Network Connection” with “Media disconnected”. Describe this computer’s situation in three sentences.

ipconfig /allـێکی کۆن دوو کارت پیشان دەدات: «Local Area Connection» بە ⁦Physical Address 00-00-5E-00-53-E1⁩، Dhcp Enabled No، ⁦IP Address 10.1.1.2⁩، ماسکی ⁦255.255.255.0⁩ و Default Gatewayـێکی بەتاڵ؛ و «Wireless Network Connection» بە «Media disconnected». بارودۆخی ئەم بە سێ ڕستە باس بکە.

Show answerوەڵامەکە پیشان بدە

The wired card (MAC 00-00-5E-00-53-E1) has a static address, 10.1.1.2/24, typed by hand, and no gateway, so it can reach only computers in 10.1.1.0/24 — typical of a two-PC lab. The Wi-Fi card is not connected to any network. To reach the Internet it would need a gateway (or DHCP).

کارتە سیمدارەکە ⁦(MAC 00-00-5E-00-53-E1)⁩ هەیە، ⁦10.1.1.2/24⁩، کە بە دەست نووسراوە و نییە، بۆیە تەنیا دەگاتە ناو ⁦10.1.1.0/24⁩ — وەک تاقیگەیەکی دوو-. کارتی ⁦Wi-Fi⁩ بە هیچ نەبەستراوە. بۆ گەیشتن بە پێویستی بە (یان ) دەبێت.

ExerciseڕاهێنانMap, check, unmapنەخشە بکە، بپشکنە، بیپچڕێنە

Aram-PC shares a folder called Lessons. Shilan’s computer already uses E: for its DVD drive. Write the commands to (a) see what Aram-PC shares, (b) map Lessons to a free letter that Windows chooses, (c) list her connections and (d) remove the mapping.

⁦Aram-PC⁩ فۆڵدەرێک بە ناوی Lessons هاوبەش دەکات. شیلان پێشتر E:ـی بۆ درایڤی DVD بەکار هێناوە. فەرمانەکان بنووسە بۆ ⁦(a)⁩ بینینی ئەوەی ⁦Aram-PC⁩ هاوبەشی دەکات، ⁦(b)⁩ نەخشەکردنی Lessons بۆ پیتێکی بەتاڵ کە Windows هەڵیدەبژێرێت، ⁦(c)⁩ لیستکردنی پەیوەندییەکانی و ⁦(d)⁩ لابردنی نەخشەکردنەکە.

Show answerوەڵامەکە پیشان بدە
BAT
net view \\Aram-PC
net use * \\Aram-PC\Lessons
net use
net use z: /delete
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 2

Windows answers with the letter it chose, for example Drive Z: is now connected to \\Aram-PC\Lessons. (Windows starts from Z: and counts back)

Windows بەو پیتەی هەڵیبژارد وەڵام دەداتەوە، بۆ نموونە Drive Z: is now connected to \\Aram-PC\Lessons. (Windows لە Z:ـەوە دەست پێ دەکات و بەرەو دواوە دەژمێرێت)

Lineدێڕی 4

Use the letter Windows gave you.

ئەو پیتە بەکاربهێنە کە Windows پێی دای.

ExerciseڕاهێنانWhich tool?کام ئامراز؟

Choose one command for each situation: (a) a website moved and your PC still opens the old one; (b) you need the PID of the program listening on port 3306; (c) you must reach 10.50.0.0/16 through a second router 192.168.1.254 after every restart; (d) on a Mac you want your IP address.

بۆ هەر بارێک فەرمانێک هەڵبژێرە: ⁦(a)⁩ گوازراوەتەوە و هێشتا کۆنەکە دەکاتەوە؛ ⁦(b) PID⁩ـی ئەو دەوێت کە لەسەر ⁦3306⁩ گوێ دەگرێت؛ ⁦(c)⁩ دەبێت دوای هەموو لە ڕێی دووەمی ⁦192.168.1.254⁩ بگەیتە ⁦10.50.0.0/16⁩؛ ⁦(d)⁩ لەسەر Mac دەوێت.

Show answerوەڵامەکە پیشان بدە
  • (a) ipconfig /flushdns — empties the DNS cache
  • (b) netstat -ano | findstr :3306 — the PID is in the last column
  • (c) route -p add 10.50.0.0 mask 255.255.0.0 192.168.1.254 (administrator)
  • (d) ifconfig (or ipconfig getifaddr en0)
  • ⁦(a)⁩ ipconfig /flushdns — DNS بەتاڵ دەکاتەوە
  • ⁦(b)⁩ netstat -ano | findstr :3306 — PID لە دوایین ستووندایە
  • ⁦(c)⁩ route -p add 10.50.0.0 mask 255.255.0.0 192.168.1.254 (بەڕێوەبەر)
  • ⁦(d)⁩ ifconfig (یان ipconfig getifaddr en0)

Summaryپوختە

  • ipconfig (Windows only): address, mask, gateway; /all adds the Physical Address = MAC, DHCP, lease, DHCP and DNS servers; /release and /renew (administrator) redo DHCP; /displaydns and /flushdns show and empty the DNS cache.
  • hostname = the name; getmac = your MACs; arp -a = neighbours’ MACs (dynamic/static).
  • route print shows the routing table (0.0.0.0 = default route); route add/delete/change with care, -p = persistent, administrator.
  • netstat -ano + tasklist = which program owns which port; nslookup = ask DNS directly.
  • net view \\PC lists shares; net use h: \\PC\share maps a network drive; error 85 = the letter is taken.
  • PowerShell: Get-NetIPConfiguration, Test-NetConnection (-Port), Resolve-DnsName. Linux: ip addr, ip route, traceroute, dig; macOS: ifconfig.
  • ipconfig (تەنیا Windows): ناونیشان، ماسک، ؛ /all ⁦Physical Address = MAC⁩، ، ، DHCP و DNS زیاد دەکات؛ /release و /renew (بەڕێوەبەر) دووپاتە دەکەنەوە؛ /displaydns و /flushdns DNS پیشان دەدەن و بەتاڵی دەکەنەوە.
  • hostname = ناوەکە؛ getmac = MACـەکانی خۆت؛ arp -a = MACـی دراوسێکان ⁦(dynamic/static)⁩.
  • route print پیشان دەدات (⁦0.0.0.0⁩ = )؛ route add/delete/change بە وریاییەوە، -p = هەمیشەیی، بەڕێوەبەر.
  • netstat -ano + tasklist = کام خاوەنی کام ؛ nslookup = ڕاستەوخۆ لە DNS بپرسە.
  • net view \\PC هاوبەشەکان لیست دەکات؛ net use h: \\PC\share دروست دەکات؛ هەڵەی ⁦85⁩ = پیتەکە گیراوە.
  • ⁦PowerShell: Get-NetIPConfiguration⁩، ⁦Test-NetConnection (-Port)⁩، ⁦Resolve-DnsName. Linux: ip addr⁩، ip route، traceroute، dig؛ ⁦macOS: ifconfig⁩.

Next: share a folder between two PCs and connect with Remote Desktop — Sharing folders and Remote Desktop; and a method for finding faults — Troubleshooting networks.

دواتر: هاوبەشکردنی فۆڵدەر لە نێوان دوو و پەیوەندی بە Remote Desktop — هاوبەشکردنی فۆڵدەر و Remote Desktop؛ و ڕێگایەک بۆ دۆزینەوەی کێشەکان — چارەسەرکردنی کێشەی ڕایەڵە.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Lab: Connecting Two PCs, Sharing Folders and Remote Desktopتاقیگە: بەستنەوەی دوو کۆمپیوتەر، هاوبەشکردنی فۆڵدەرەکان و Remote Desktop

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.