Skip to content

Commit 9932fcf

Browse files
committed
new network dir
1 parent 00241d5 commit 9932fcf

33 files changed

Lines changed: 2223 additions & 909 deletions

content/posts/2026-04-18-Bash-Scripting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,3 +1311,4 @@ Total Cost is 78
13111311
### Basic String Operations
13121312

13131313

1314+
107 KB
Loading
259 KB
Loading
88.6 KB
Loading
288 KB
Loading
299 KB
Loading
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
3+
title: "网络工程师" # 建议加双引号,防止标题中有冒号或特殊字符导致解析失败"
4+
date: 2026-05-03T20:00:00+08:00 # 建议带上 ISO 8601 时间戳,方便精准排序和时区对齐
5+
categories: ["Network"] # 使用标准的 YAML 数组格式 [],可扩展性更好
6+
tags: ["Network"] # 强烈建议增加 tags 字段,这在 Hugo 中是默认的二级索引
7+
draft: false # 显式声明发布状态,防止漏发
8+
9+
---
10+
11+
12+
13+
14+
### 让不同网段下的pc互通:
15+
16+
- 拓扑图:
17+
18+
![alt text](image-3.png)
19+
20+
21+
22+
- pc1:
23+
24+
![alt text](image-1.png)
25+
26+
27+
- pc2:
28+
29+
![alt text](image-2.png)
30+
31+
32+
---
33+
34+
#### AR2220配置
35+
36+
- 0/0/0接口:192.168.10.1/24
37+
38+
- 0/0/1接口:192.168.20.1/24
39+
40+
```
41+
42+
[Huawei]interface giga
43+
[Huawei]interface GigabitEthernet 0/0/0
44+
[Huawei-GigabitEthernet0/0/0]ip address 192.168.10.1 24
45+
May 3 2026 18:52:02-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
46+
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
47+
[Huawei-GigabitEthernet0/0/0]undo shutdown
48+
Info: Interface GigabitEthernet0/0/0 is not shutdown.
49+
[Huawei-GigabitEthernet0/0/0]q
50+
[Huawei]q
51+
<Huawei>save
52+
The current configuration will be written to the device.
53+
Are you sure to continue? (y/n)[n]:y
54+
It will take several minutes to save configuration file, please wait.......
55+
Configuration file had been saved successfully
56+
Note: The configuration file will take effect after being activated
57+
<Huawei>sys
58+
Enter system view, return user view with Ctrl+Z.
59+
[Huawei]inter
60+
[Huawei]interface giga
61+
[Huawei]interface GigabitEthernet 0/0/1
62+
[Huawei-GigabitEthernet0/0/1]ip add
63+
[Huawei-GigabitEthernet0/0/1]ip address 192.168.20.1 24
64+
May 3 2026 18:53:06-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
65+
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
66+
[Huawei-GigabitEthernet0/0/1]
67+
[Huawei-GigabitEthernet0/0/1]q
68+
[Huawei]q
69+
<Huawei>save
70+
The current configuration will be written to the device.
71+
Are you sure to continue? (y/n)[n]:y
72+
It will take several minutes to save configuration file, please wait.......
73+
Configuration file had been saved successfully
74+
Note: The configuration file will take effect after being activated
75+
76+
77+
```
78+
79+
80+
---
81+
82+
83+
#### 测试两台pc间连通性:
84+
85+
- pc1
86+
87+
![alt text](image-4.png)
88+
89+
- pc2
90+
91+
![alt text](image.png)
92+
93+
#### 成功互相ping通!!
94+
95+
---
96+
---
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="auto" data-theme="auto">
3+
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="robots" content="noindex, nofollow">
8+
<title>Network | My SRE Knowledge Library</title>
9+
<meta name="keywords" content="">
10+
<meta name="description" content="">
11+
<meta name="author" content="">
12+
<link rel="canonical" href="http://localhost:1313/categories/network/">
13+
<link crossorigin="anonymous" href="/assets/css/stylesheet.9e010bc22ef5794c0560b82f657f315607f24d8b05e0088e95b900c22246f5c0.css" integrity="sha256-ngELwi71eUwFYLgvZX8xVgfyTYsF4AiOlbkAwiJG9cA=" rel="preload stylesheet" as="style">
14+
<link rel="icon" href="http://localhost:1313/favicon.ico">
15+
<link rel="icon" type="image/png" sizes="16x16" href="http://localhost:1313/favicon-16x16.png">
16+
<link rel="icon" type="image/png" sizes="32x32" href="http://localhost:1313/favicon-32x32.png">
17+
<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png">
18+
<link rel="mask-icon" href="http://localhost:1313/safari-pinned-tab.svg">
19+
<meta name="theme-color" content="#2e2e33">
20+
<meta name="msapplication-TileColor" content="#2e2e33">
21+
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/categories/network/index.xml" title="rss">
22+
<link rel="alternate" hreflang="en" href="http://localhost:1313/categories/network/">
23+
<noscript>
24+
<style>
25+
#theme-toggle,
26+
.top-link {
27+
display: none;
28+
}
29+
30+
</style>
31+
<style>
32+
@media (prefers-color-scheme: dark) {
33+
:root {
34+
--theme: rgb(29, 30, 32);
35+
--entry: rgb(46, 46, 51);
36+
--primary: rgb(218, 218, 219);
37+
--secondary: rgb(155, 156, 157);
38+
--tertiary: rgb(65, 66, 68);
39+
--content: rgb(196, 196, 197);
40+
--code-block-bg: rgb(46, 46, 51);
41+
--code-bg: rgb(55, 56, 62);
42+
--border: rgb(51, 51, 51);
43+
color-scheme: dark;
44+
}
45+
46+
.list {
47+
background: var(--theme);
48+
}
49+
50+
.toc {
51+
background: var(--entry);
52+
}
53+
}
54+
55+
</style>
56+
</noscript>
57+
<script>
58+
if (localStorage.getItem("pref-theme") === "dark") {
59+
document.querySelector("html").dataset.theme = 'dark';
60+
} else if (localStorage.getItem("pref-theme") === "light") {
61+
document.querySelector("html").dataset.theme = 'light';
62+
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
63+
document.querySelector("html").dataset.theme = 'dark';
64+
} else {
65+
document.querySelector("html").dataset.theme = 'light';
66+
}
67+
68+
</script>
69+
</head>
70+
<body class="list" id="top">
71+
<header class="header">
72+
<nav class="header-nav">
73+
<div class="logo">
74+
<a href="http://localhost:1313/" accesskey="h" title="My SRE Knowledge Library (Alt + H)">My SRE Knowledge Library</a>
75+
<div class="logo-switches">
76+
<button id="theme-toggle" class="theme-toggle" accesskey="t" title="(Alt + T)" aria-label="Toggle theme">
77+
<svg class="moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"
78+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
79+
stroke-linejoin="round">
80+
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
81+
</svg>
82+
<svg class="sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"
83+
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
84+
stroke-linejoin="round">
85+
<circle cx="12" cy="12" r="5"></circle>
86+
<line x1="12" y1="1" x2="12" y2="3"></line>
87+
<line x1="12" y1="21" x2="12" y2="23"></line>
88+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
89+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
90+
<line x1="1" y1="12" x2="3" y2="12"></line>
91+
<line x1="21" y1="12" x2="23" y2="12"></line>
92+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
93+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
94+
</svg>
95+
</button>
96+
</div>
97+
</div>
98+
<ul id="menu" class="menu">
99+
<li>
100+
<a href="http://localhost:1313/" title="首页">
101+
<span>首页</span>
102+
</a>
103+
</li>
104+
<li>
105+
<a href="http://localhost:1313/categories/" title="分类">
106+
<span>分类</span>
107+
</a>
108+
</li>
109+
<li>
110+
<a href="http://localhost:1313/tags/" title="标签">
111+
<span>标签</span>
112+
</a>
113+
</li>
114+
</ul>
115+
</nav>
116+
</header>
117+
<main class="main">
118+
<header class="page-header">
119+
<h1>
120+
Network
121+
</h1>
122+
</header>
123+
124+
<article class="post-entry tag-entry">
125+
<header class="entry-header">
126+
<h2 class="entry-hint-parent">网络工程师
127+
</h2>
128+
</header>
129+
<div class="entry-content">
130+
<p></p>
131+
</div>
132+
<footer class="entry-footer"><span title='2026-05-03 20:00:00 +0800 CST'>May 3, 2026</span>&nbsp;·&nbsp;<span>0 min</span>&nbsp;·&nbsp;<span>0 words</span></footer>
133+
<a class="entry-link" aria-label="post link to 网络工程师" href="http://localhost:1313/posts/%E7%BD%91%E7%BB%9C%E5%B7%A5%E7%A8%8B%E5%B8%88/"></a>
134+
</article>
135+
</main>
136+
137+
<footer class="footer">
138+
<span>&copy; 2026 <a href="http://localhost:1313/">My SRE Knowledge Library</a></span> ·
139+
140+
<span>
141+
Powered by
142+
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
143+
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
144+
</span>
145+
</footer>
146+
<a href="#top" id="top-link" class="top-link hidden" aria-label="go to top" title="Go to Top (Alt + G)" accesskey="g">
147+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
148+
stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevrons-up">
149+
<polyline points="17 11 12 6 7 11"></polyline>
150+
<polyline points="17 18 12 13 7 18"></polyline>
151+
</svg>
152+
</a>
153+
154+
<script>
155+
let menu = document.getElementById('menu');
156+
if (menu) {
157+
158+
const scrollPosition = localStorage.getItem("menu-scroll-position");
159+
if (scrollPosition) {
160+
menu.scrollLeft = parseInt(scrollPosition, 10);
161+
}
162+
163+
menu.onscroll = function () {
164+
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
165+
}
166+
}
167+
168+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
169+
anchor.addEventListener("click", function (e) {
170+
e.preventDefault();
171+
var id = this.getAttribute("href").substr(1);
172+
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
173+
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
174+
behavior: "smooth"
175+
});
176+
} else {
177+
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
178+
}
179+
if (id === "top") {
180+
history.replaceState(null, null, " ");
181+
} else {
182+
history.pushState(null, null, `#${id}`);
183+
}
184+
});
185+
});
186+
187+
</script>
188+
<script>
189+
var toplink = document.getElementById("top-link");
190+
window.onscroll = function () {
191+
const scrollThreshold = window.innerHeight;
192+
if (document.body.scrollTop > scrollThreshold || document.documentElement.scrollTop > scrollThreshold) {
193+
toplink.classList.remove("hidden");
194+
} else {
195+
toplink.classList.add("hidden");
196+
}
197+
};
198+
199+
</script>
200+
<script>
201+
document.getElementById("theme-toggle").addEventListener("click", () => {
202+
const html = document.querySelector("html");
203+
if (html.dataset.theme === "dark") {
204+
html.dataset.theme = 'light';
205+
localStorage.setItem("pref-theme", 'light');
206+
} else {
207+
html.dataset.theme = 'dark';
208+
localStorage.setItem("pref-theme", 'dark');
209+
}
210+
})
211+
212+
</script>
213+
</body>
214+
215+
</html>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
3+
<channel>
4+
<title>Network on My SRE Knowledge Library</title>
5+
<link>http://localhost:1313/categories/network/</link>
6+
<description>Recent content in Network on My SRE Knowledge Library</description>
7+
<generator>Hugo</generator>
8+
<language>zh-cn</language>
9+
<lastBuildDate>Sun, 03 May 2026 20:00:00 +0800</lastBuildDate>
10+
<atom:link href="http://localhost:1313/categories/network/index.xml" rel="self" type="application/rss+xml" />
11+
<item>
12+
<title>网络工程师</title>
13+
<link>http://localhost:1313/posts/%E7%BD%91%E7%BB%9C%E5%B7%A5%E7%A8%8B%E5%B8%88/</link>
14+
<pubDate>Sun, 03 May 2026 20:00:00 +0800</pubDate>
15+
<guid>http://localhost:1313/posts/%E7%BD%91%E7%BB%9C%E5%B7%A5%E7%A8%8B%E5%B8%88/</guid>
16+
<description></description>
17+
</item>
18+
</channel>
19+
</rss>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-cn">
3+
<head>
4+
<title>http://localhost:1313/categories/network/</title>
5+
<link rel="canonical" href="http://localhost:1313/categories/network/">
6+
<meta charset="utf-8">
7+
<meta http-equiv="refresh" content="0; url=http://localhost:1313/categories/network/">
8+
</head>
9+
</html>

0 commit comments

Comments
 (0)