Skip to content

Instantly share code, notes, and snippets.

@overnew
overnew / example-mysql-apache.php
Created February 23, 2024 08:14
example-mysql-apache.php
<?php
$db = new mysqli('db', 'root', 'wordpress', 'team1');
if($db->connect_error){
die('Not Connected : ' . $db->connect_error);
}
//team list 출력
{
echo '<p>' . "team1" . '</p>';
echo "-------------------------------------------------------";
@overnew
overnew / HQ.conf
Created February 5, 2024 14:07
HQ.conf
conf t
int lo0
ip add 10.1.1.1 255.255.255.0
no shut
exit
int s1/0
ip add 10.1.10.1 255.255.255.252
@overnew
overnew / HQ_vpn2.conf
Created February 5, 2024 14:07
HQ_vpn2.conf
conf t
int s1/0
ip add 10.1.10.6 255.255.255.252
no shut
exit
int f0/1
ip add 1.1.123.2 255.255.255.248
@overnew
overnew / HQ_vpn1.conf
Created February 5, 2024 14:06
HQ_vpn1.conf
conf t
int s1/0
ip add 10.1.10.2 255.255.255.252
no shut
exit
int f0/1
ip add 1.1.123.1 255.255.255.248
@overnew
overnew / isp.conf
Created February 5, 2024 14:06
isp.conf
conf t
int f0/0
ip add 1.1.100.2 255.255.255.252
no shut
exit
int s1/0
ip add 1.1.100.5 255.255.255.252
no shut
exit
@overnew
overnew / ce.conf
Created February 5, 2024 14:05
ce.conf
conf t
int f0/0
ip add 1.1.123.3 255.255.255.248
no shut
exit
int f0/1
ip add 1.1.100.1 255.255.255.252
@overnew
overnew / br2.conf
Created February 5, 2024 14:04
br2.conf
conf t
int f0/1
ip add 10.3.3.3 255.255.255.0
no shut
exit
int s1/0
ip add 1.1.100.10 255.255.255.252
@overnew
overnew / br1.conf
Created February 5, 2024 14:04
br1.conf
conf t
int f0/1
ip add 10.2.2.2 255.255.255.0
no shut
exit
int s1/0
ip add 1.1.100.6 255.255.255.252
@overnew
overnew / ISP.conf
Created February 4, 2024 06:01
ISP conf
//step 1: IP 세팅
conf t
interface Serial1/0
ip address 1.1.100.1 255.255.255.252
no sh
interface Serial1/1
ip address 1.1.100.13 255.255.255.252
no sh
@overnew
overnew / VPN_Branch2.conf
Created February 4, 2024 06:00
VPN_Branch2 conf
//step 1: IP 세팅
conf t
interface Serial1/0
ip address 1.1.100.10 255.255.255.252
no sh
interface Loopback0
ip address 10.3.3.3 255.255.255.0