From 2c44359751365e165b0541054e6578f96f81f3e2 Mon Sep 17 00:00:00 2001 From: Melik Houij Date: Thu, 8 Dec 2022 10:34:48 +0100 Subject: [PATCH] Ubuntu doku Fertig! Signed-off-by: Melik Houij --- dhcp/images/status.png | Bin 0 -> 5926 bytes dhcp/images/{image.png => ubuntu.png} | Bin dhcp/ubuntu.md | 71 +++++++++++++++++++++++++- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 dhcp/images/status.png rename dhcp/images/{image.png => ubuntu.png} (100%) diff --git a/dhcp/images/status.png b/dhcp/images/status.png new file mode 100644 index 0000000000000000000000000000000000000000..d032dffd044a361c3086a9f6651e21a63ced42bd GIT binary patch literal 5926 zcmZWtXH-*Z*S&~>fPj@K(v&Jy=@~i>B8Z?M9RfoHq(kTd0*GY<3DTtorKyyNlzW<;q0Kh&L z$_m6(v{bPGEmrRYNb?&WKDY<)HvSj9_1P_ls?yS&&3s z+(V>V#^f*aPS+2aCBbfi>)55Tg1ljw6R*#uLnE4}yAr_KsQx{LUC9rS71n@js0|d-W4iVpNiUc12UWX8AO1X(Vy7L{}#q-Qvn&#Fe59x@mz1XuV8 zFc`L;3Y*!DzhkLzlr7O`_vw?vx;Rx!ddd0`#%jkZl4e#{M#aLKluM+knEI*NZzc2H z6!51mg-0kWjh|syNOSZN0t>+lw`Hu#kyHNg6!x^s!R+vSs;@dQ+xwW%>z^DK-L;Z@uugGpvired2WmiHE#4cWb z>F6ko<#%kwHe8-P6XI3UxXFeQo1P@t!?2geif+>01a8f5dLo45*Bj;3ymq^G<=){) zTg$G|4lBExCusY1f^(amWP4Jzhz>&_i@X`m8}ovYpj%j0wW;nNEhT?j|10t0e7h*1 z)RL*tlKSR%t?Lo_0f5LUzyyJJyAG1J0Rnx;z#>QPCTPbM8bkM_ff&Ox@sNB5 zynFiGVE5L8&+KIo+rK{=5F*UF1wZo`SF_Wc4?XM~YyPuIf~+Mq zB?QC>joc%Lrg=;T?|}EL`w6FE;#*JTUH~7Dr$C1q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*>HpR)%-{Tv dW#W%m?A=2+wVqFFGRp@rGBEwKQs4RUe*l_3$DIHG literal 0 HcmV?d00001 diff --git a/dhcp/images/image.png b/dhcp/images/ubuntu.png similarity index 100% rename from dhcp/images/image.png rename to dhcp/images/ubuntu.png diff --git a/dhcp/ubuntu.md b/dhcp/ubuntu.md index 9a341a1..1ec3ab0 100644 --- a/dhcp/ubuntu.md +++ b/dhcp/ubuntu.md @@ -1,3 +1,70 @@ # Ubuntu und Linux -ubuntu ist ein Linux BetriebsSystem -![Ubuntu](images/image.png) \ No newline at end of file +ubuntu ist ein Linux BetriebsSystem basiert auf Debian +![Ubuntu](images/ubuntu.png) + +## Statische IP Setup +```bash +cd /etc/netplan/ +sudo nano 00-installer-config.yaml +``` + + +Anderen sie das Datei damit es richtig Configuriert ist: +```YAML +network: + renderer: networkd + ethernets: + ens33: # villeicht wird es ein anderes network Adapter sein, Checken sie mit "ip a" + addresses: + - 192.168.100.1/24 + nameservers: + addresses: [4.2.2.2, 8.8.8.8] + routes: + - to: default + via: 192.168.100.1 + version: 2 +``` + +## isc-dhcp-server Installation und Konfiguration +Installieren sie isc-dhcp-server (hashtag sind kommentare schreiben sie die nicht) +```bash +sudo apt-get install isc-dhcp-server #Paket installieren +cd /etc/dhcp/ #zum configurationverzeichnis +sudo mv dhcpd.conf{,.backup} #backup machen +sudo nano dhcpd.conf +``` +Anderen Sie Das Datei damit es so Konfiguriert ist +``` +default-lease-time 600; +max-lease-time 7200; +authorative; + +subnet 192.168.100.0 netmask 255.255.255.0 { + range 192.168.100.100 192.168.100.200; + option routers 192.168.100.1; +option domain-name-servers 192.168.1.1, 192.168.1.2; +} +``` + +jetzt änderen sie Das Datei fur isc-dhcp-server +```bash + sudo nano /etc/default/isc-dhcp-server +``` + +``` +INTERFACESv4="ens36" +INTERFACESv6="" +``` +ändern sie "ens36" mit ihren interface ob es anders ist + +## dhcp server Starten +```bash +sudo systemctl start isc-dhcp-server +sudo systemctl enable isc-dhcp-server # autostartet +sudo systemctl status isc-dhcp-server +``` + +![DHCP Active](images/status.png) + +Wenn es wie im Oberen bild ausseht, Funktionert es! +