##### tags `nasa` # Partitions: > - **partitions:** > <font color="blue"> $fdisk -l PARTITOIN </font> to see partition information > <font color="blue"> $lsblk </font> to list block devices > <font color="blue"> $fdisk PARTITION </font> to deal with PARTITION > - **partition table:** > MBR: Master Boot Record, 3 primary + 1 extended or 4 primary > GPT: GUID Partiton Table, arbitrary > - **LVM:** > 1. PV: > <font color="blue"> $pvcreate PARTITION </font> > 2. VG: > <font color="blue"> $vgcreate {vg-name} {pv1} {pv2} ...</font> > <font color="blue"> $vgextend {vg-name} {pv}</font> > 3. LV: > <font color="blue"> $lvcreate -L {size (ex. 10GiB)} -n {lv-name} {vg-name} </font> > <font color="blue"> $lvresize -L +/-{size} {lv-path} </font> > - **FSType & Mount:** > <font color="blue"> $mkfs -t {fstype} {partiton path} </font> (ex. $mkfs -t ext4 /path/to/partition) > <font color="blue"> $mount {device} {mount point} </font> (ex. mount /path/to/lvm /home) > - **fstab:** > <font color="blue"> $vim /etc/fstab </font> (UUID dir type errors=remount-ro,auto,exec,rw,user 0 0) # Cisco Packet Tracer: > [lab slides](https://slides.com/shu-po/deck#/nasa2020-lab5) > - user mode: > **$enable** > - Privileged mode: > **$config t** > - finish: > **$end / $write memory** > - show: > **1. $show running-config** (running configuration) > **2. $show interfaces** (detal of all interfacfes) > **3. $show vlan** (vlans in vlan database) > - set hostname: > **$hostname {name}** > - enable password(secret): > **$enable password {PASSWORD}** > - show password(secret): > **$do show running-config | include enable** > - password encryption: > **$service password-encryption** > - choose interface: > **ex. $interface Fa0/1** > - access vlan: > **1. $swichport mode access** > **2. $switchport access vlan {vlan-number}** > - trunk port: > **1. $switchport mode trunk** > **2. $switchport trunk allowed vlan {v1},{v2}** > - set vlan name: > **1. $Vlan {number}** > **2. $Name {VLAN_NAME}** > - allow telnet: > **1. $interface {vlan-name or vlan {number}}** > **2. $ip address {target ip} 255.255.255.0** > - link aggregation: > **1. $interface range Fa0/1-2** (for example) > **2. $ ...same settings...** > **3. $channel-group {NUM} mode active** > - choose line: > **1. $line vty 0 4** (for example) > **2. $login** (enable login) > **3. $username {USERNAME} password {PASSWORD}** (if no specific user, then no username...) > - Disable domain name lookup: > **$no ip domain-lookup**
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up