From 93b2248f3f034edf8f7020fc52da12c9c4dd61b6 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Thu, 14 Jul 2022 19:26:40 +0200 Subject: [PATCH] vault backup: 2022-07-14 19:26:40 --- notes/.obsidian/core-plugins.json | 1 - .../obsidian-activity-history/data.json | 12 ++- notes/psi/CCNA1 Final PTSA.md | 85 +++++++++++++++++++ notes/psi/Základní konfigurace.md | 2 +- notes/psi/psi.md | 1 + 5 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 notes/psi/CCNA1 Final PTSA.md diff --git a/notes/.obsidian/core-plugins.json b/notes/.obsidian/core-plugins.json index ac097a0..e047509 100644 --- a/notes/.obsidian/core-plugins.json +++ b/notes/.obsidian/core-plugins.json @@ -11,6 +11,5 @@ "command-palette", "markdown-importer", "word-count", - "open-with-default-app", "file-recovery" ] \ No newline at end of file diff --git a/notes/.obsidian/plugins/obsidian-activity-history/data.json b/notes/.obsidian/plugins/obsidian-activity-history/data.json index c452897..298cce1 100644 --- a/notes/.obsidian/plugins/obsidian-activity-history/data.json +++ b/notes/.obsidian/plugins/obsidian-activity-history/data.json @@ -12,8 +12,8 @@ "checkpointList": [ { "path": "/", - "date": "2022-07-11", - "size": 880894 + "date": "2022-07-14", + "size": 886563 } ], "activityHistory": [ @@ -747,6 +747,14 @@ { "date": "2022-07-11", "value": 2729 + }, + { + "date": "2022-07-13", + "value": 0 + }, + { + "date": "2022-07-14", + "value": 5721 } ] } diff --git a/notes/psi/CCNA1 Final PTSA.md b/notes/psi/CCNA1 Final PTSA.md new file mode 100644 index 0000000..25de53b --- /dev/null +++ b/notes/psi/CCNA1 Final PTSA.md @@ -0,0 +1,85 @@ +# CCNA1 Final PTSA + +`192.168.10.0/24` +- subnet A - 100 +- subnet B - 50 + +| Spec | A | B | +| --------------------------------- | ------------------------------------- | ------------------------------------- | +| Number of bits in the subnet | 25 | 26 | +| ip mask | `11111111.11111111.11111111.10000000` | `11111111.11111111.11111111.11000000` | +| new ip mask | 255.255.255.128 | 255.255.255.192 | +| max number of usable subnets | 32 | 16 | +| number of usable hosts per subnet | 126 | 62 | +| ip subnet | `192.168.10.0/25` | `192.168.10.128/26` | +| first | `192.168.10.1` | `192.168.10.129` | +| last | `192.168.10.126` | `192.168.10.190` | + + +| description | a | b | +| ------------------- | ---------------- | ---------------- | +| first | `192.168.10.1` | `192.168.10.129` | +| last | `192.168.10.127` | `192.168.10.190` | +| max number of hosts | `124` | `61` | + +| device | ipa | subnet mask | gateway | points | +| --------- | ---------------- | ----------------- | -------------- | ------ | +| PC-A | `192.168.10.126` | `255.255.255.128` | `192.168.10.1` | 2pts | +| R1-G0/0/0 | `192.168.10.1` | `255.255.255.128` | NA | 2pts | +| R1-G0/0/1 | `192.168.10.129` | `255.255.255.192` | NA | 2pts | +| S1 | `192.168.10.2` | `255.255.255.128` | `192.168.10.1` | 2pts | +| PC-B | `192.168.10.190` | `255.255.255.192` | `192.168.10.129` | 2pts | + +| assigned to interface | ipv6 subnet | prefix | +| --------------------- | ---------------------- | ------- | +| R1-G0/0/0 | `2001:db8:acad:1::/64` | `64` | +| R1-G0/0/1 | `2001:db8:acad:2::/64` | `64` | + +| Device | ipv6a | prefix | gateway | points | +| --------- | -------------------- | ------ | -------------------- | ------ | +| R1-G0/0/0 | `2001:db8:acad:1::1` | `64` | NA | 3pts | +| R1-G0/0/1 | `2001:db8:acad:2::1` | `64` | NA | 3pts | +| S1 | `2001:db8:acad:1::2` | `64` | `2001:db8:acad:1::1` | 4pts | + +## PC-A +| key | value | +| ------------- | ------------------ | +| physical addr | 00E0.F7DA.3542 | +| ipv4 addr | 192.168.10.126 | +| subnet mask | 255.255.255.128 | +| ipv4 def gate | 192.168.10.1 | +| ipv6 addr | 2001:db8:acad:1::3 | +| ipv6 def gate | 2001:db8:acad:1::1 | + +## PC-B +| key | value | +| ------------- | --------------- | +| desc | something | +| physical addr | 000c.8588.a780 | +| ipv4 addr | 192.168.10.190 | +| subnet mask | 255.255.255.192 | +| ipv4 def gate | 192.168.10.129 | +| ipv6 addr | 2001:db8:acad:2::2 | + +## R1 +| Desc | value | +| ---------------- | --------- | +| router | 1941 | +| IOS image | 15.1(4)M4 | +| total RAM | 262136 | +| total memory | 255744000 | +| conf register | 0x2102 | +| cli command used | `show version` | + +### Commands + +| Desc | Command | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | +| Display a summary of important information about the ipv4 interfaces | `show ip interface` | +| display the ipv4 routing table | `show ip route` | +| display the layer 2 to layer 3 mapping of addresses | `show mac-address-table` | +| display detailed ipv4 info on g0/0/0 | `show ip interface gig 0/0/0` | +| display the ipv6 routing table | `show ipv6 route` | +| display a summary of ipv6 interface addresses and status | `show ipv6 interface` | +| display information about the devices connected to R1. Info should include Device ID, local interface, hold time, capability, platform, port Id | `show cdp neighbors` | +| Save the current configuration so it will be used the next time the router is started. | `copy running-config startup-config` | diff --git a/notes/psi/Základní konfigurace.md b/notes/psi/Základní konfigurace.md index d0e768a..9526512 100644 --- a/notes/psi/Základní konfigurace.md +++ b/notes/psi/Základní konfigurace.md @@ -21,7 +21,7 @@ Módy: `(config)# service password-encryption` zapne šifrování hesel `(config)# banner motd XYYX` X znak odděluje zprávu (nesmí se objevit jinde ve zprávě), YY je banner co se bude zobrazovat `(config)# login block-for 120 attempts 2 within 30` fail2ban -`(config)# no ipdomain-lookup` vypne DNS lookup v user mode (ctrl+shift+6 zruší) +`(config)# no ip domain-lookup` vypne DNS lookup v user mode (ctrl+shift+6 zruší) `(config)# security passwords min-length 10` nastaví minimální délku hesla `(config)# exit` `# copy running-config startup-config` uložení (running-config v paměti, startup-config) diff --git a/notes/psi/psi.md b/notes/psi/psi.md index b67bf91..3826a88 100644 --- a/notes/psi/psi.md +++ b/notes/psi/psi.md @@ -8,6 +8,7 @@ imagePrefix: 'data/' ``` %% Zoottelkeeper: Beginning of the autogenerated index file list %% - [[psi/Adresace|Adresace]] +- [[psi/CCNA1 Final PTSA|CCNA1 Final PTSA]] - [[psi/Data Center Tier|Data Center Tier]] - [[psi/IPv6|IPv6]] - [[psi/Sítě|Sítě]]