vault backup: 2023-08-26 11:32:11

This commit is contained in:
zleyyij
2023-08-26 11:32:11 -06:00
parent 8aa4280402
commit 74c6ca8c53
3 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,128 @@
## On Boot
Press **Enter** to begin
If greeted with a prompt asking about *Initial Configuration Dialogue*, type `n` and hit enter.
- If you decide to make use of Initial Configuration, refer to [Cisco Docs](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15mt/fundamentals-15-mt-book/cf-setup.html)
You should be greeted with a prompt that has a `>` character at the end, indicating you are in user EXEC mode. This is limited and not used for configuration.
Enable privileged EXEC mode to get access to all commands and configurations:
```
enable
```
Shorthand: `ena`
Enter configuration mode, configuring from the terminal (also possible to configure from memory or the network):
```
configure terminal
```
Shorthand: `conf t`
## Create/edit a vlan
[docs](https://community.cisco.com/t5/networking-knowledge-base/how-to-configure-vlans-on-the-catalyst-switches/ta-p/3131780)
From configuration mode:
```
vlan [vlan-id]
```
where `[vlan-id]` is the vlan number you want to generate, this will put you into config-vlan mode
## Assign a vlan a name
From `config-vlan` mode:
```
name [ascii name]
```
where `[ascii name]` is the name you want to assign (EG: `Accounting`)
## Assign interfaces to a vlan
[docs](https://community.cisco.com/t5/networking-knowledge-base/how-to-configure-vlans-on-the-catalyst-switches/ta-p/3131780)
Enter interface config mode (from conf mode):
Single port:
```
interface [interface-to-configure]
```
shorthand: `int [interface-to-configure]`
Range [docs](https://www.cisco.com/c/en/us/td/docs/ios/interface/configuration/guide/ir_ifrange.html):
```
interface range fa0/st - nd
```
where `fa` is the speed, `st` the starting port, and `nd` the end port
From `config-if` mode:
Enter port mode configuration:
```
switchport mode access
```
Link the interface(s) to a vlan:
```
switchport access vlan [vlan-id]
```
interfaces are referenced in the format of `sp0/nm` where speed and port number are specified (eg: fa0)
## Configuring trunk ports
From the `config` mode, select an interface to configure as trunk mode:
```
interface [interface-id (sp0/nm syntaax)]
```
shorthand: `int fa0/nm`
Set the mode of the selected interface to trunk mode:
```
switchport mode trunk
```
Type `end` or `exit` to leave `config-if` mode
## Limiting trunk traffic to a specific vlan
From `config` mode:
```
interface [interface-id]
```
shorthand: `int fa0/24`
Change trunk config:
```
switchport trunk allow vlan [vlan-id]
```
## Force vlans to be online:
From `configure` mode:
```
vlan [vlan-id]
```
- [ ]
```
no shutdown
```
# Viewing configs
### Vlan config
From the privileged exec terminal:
```
show vlan
```
### See what IP address is assigned to a vlan
From privileged exec mode:
```
show run int vlan [vlan-id]
```
See what mode an interface is in:
```
show int [interface] switchport
```
### interface trunk config
From privileged exec:
```
show interface trunk
```
## Helpful Resources
Trying to figure out where in the command hierarchy you are?
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_46_se/command/reference/cr1/intro.pdf
Wondering more about the Cisco IOS CLI?
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_46_se/command/reference/cr1/intro.pdf
-

33
IT/Deploying Hydra.md Normal file
View File

@ -0,0 +1,33 @@
# OOBE
- iDrac prefers DHCP if available, the default IP address for IDRAC is 192.168.0.120
- The server shipped with raid5 configured across the 4 drives, I delete the raid configuration by going to storage -> virtual disks -> manage
- The disk failed to delete the first time and second time deletion was attempted
- Problem resolved itself by rebooting
## Installing XCP-NG
I do not have a monitor with VGA display output, and you need an iDrac enterprise to install an OS through iDrac, so I'm installing with an unattended installer via an [answer file](https://xcp-ng.org/docs/answerfile.html#answer-file-values).
- I had trouble mounting the .iso file in macos, so I ended up extracting it with
```
7zz x -tiso -y xcp-ng-8.2.1.iso -oxcp-ng-8.2.1
```
The `install.img` extraction instructions were a bit hard for me to understand, here's what I figured out.
- `iso/` is the directory you extracted the ISO into
- You make the `install` directory in the `iso` dir.
The ISO packing instructions are *super* dated, you'll want `xorrisofs` instead of whatever they have.
I never got the unattended install to work, I believe it's because I was creating the ISO on MacOS.
- The install was completed with a trial license of iDrac Enterprise and the virtual console.
Initially the installer didn't detect any drives, that's because the RAID controller was in RAID mode, but there were no virtual disks created. This was fixed by changing the controller mode to HBA.
# Installing Xen Orchestra
Xen Orchestra is a popular and extremely powerful dashboard for the Xen hypervisor.
- Run `bash -c "$(wget -qO- https://xoa.io/deploy)"` to spin up a VM running Xen-Orchestra, sign in to all of that, yada yada yada.
- Make an account on the xen-orchestra website, you can leave the company name blank
- Register your XO instance
I had an issue with being unable to upload ISOs to an ISO SR, this was fixed by updating my XO installation, as it was out of date.