Chapter 1: Core Syntax & Basic Ping (host + compile)
Learn the two-block .frasm layout, the lowercase keyword rule, and how to build a 4-packet LAN ping capture from scratch.
A user ticket claims "the LAN is down." Build a clean 4-packet ping capture (laptop -> gateway and laptop -> dns_srv) to test Wireshark display filters and baseline connectivity.
What You'll Pull Off Here
- Declare network devices with
host name { ip ... }using plain IPv4 or IPv6 addresses. - Send Ethernet frames top-to-bottom inside
compile { ... }(1 line = 1 frameon the wire). - Apply the Golden Keyword Rule: built-in keywords are lowercase letters + digits with zero underscores (
echorequest, neverecho_request).
Lab 1: Declare dns_srv & Complete a 4-Packet Ping Check
Add a third device host dns_srv { ip 192.168.1.53 }, then send laptop -> dns_srv icmp echorequest and dns_srv -> laptop icmp echoreply so your capture contains 4 ICMP frames.
- 1.Add
host dns_srv { ip 192.168.1.53 }right underneathhost gateway. - 2.Inside
compile { ... }, addlaptop -> dns_srv icmp echorequest id 101 seq 1. - 3.Add
dns_srv -> laptop icmp echoreply id 101 seq 1, then click Check Exercise.
1. host — Naming the Devices on Your Segment
Every .frasm file opens by listing the devices on the wire with host. Give each device a clear label (laptop, dns_srv, fw-dmz-01) and put ip <address> inside curly braces { ... }.
If you omit mac, FrameAssembly assigns clean, repeatable MAC addresses in order (00:00:00:00:00:01, 00:00:00:00:00:02, ...) so you only type Layer 2 MACs when testing ARP, STP, or port security.
- Plain host IPs only (
ip 192.168.1.10) — never include/24CIDR masks,=signs, or commas. - Write notes for teammates using
//comments (#and;are rejected). - Built-in keywords never contain underscores or hyphens: write
echorequestandechoreply, neverecho_request.
2. compile — One Line Equals One Ethernet Frame
Place compile { ... } below your host declarations. Each line emits one complete Ethernet II + IP + ICMP frame into your .pcap, calculating total lengths and RFC 1071 checksums automatically.
Word-by-Word Syntax BreakdownHow one .frasm line maps directly to Wireshark columns:
.frasm line maps directly to Wireshark columns:laptop -> gateway icmp echorequest id 100 seq 1laptopSenderSource host (192.168.1.10, auto-MAC 00:00:00:00:00:01)->DirectionSends the frame from laptop toward gatewaygatewayReceiverDestination host (192.168.1.1, auto-MAC 00:00:00:00:00:02)icmp echorequestProtocol & TypeICMPv4 Echo Request (Type 8, Code 0)id 100 seq 1Optional FieldsSets ICMP identifier 100 and sequence number 1Quick Formatting Reference (3 rules)
| Item | Valid .frasm | Avoid |
|---|---|---|
| Host IP format | host laptop { ip 192.168.1.10 } | host laptop { ip = "192.168.1.10/24" } |
| ICMP ping keywords | laptop -> gateway icmp echorequest | laptop -> gateway icmp echo_request |
| Comments | // Ping default gateway | # Ping default gateway |
icmp