Posts

Showing posts from August, 2015

Cisco switch - find IP connected to port

Cisco switch - find IP connected to port " sh mac address-table". This will give which MAC is connected to which port. " sh ip device tracking interface gigabitEthernet ". This will give which IP is connectd to a port. " sh ip arp " will give you a IP to MAC table

Commands from bash/shell execute with long delay

Commands from bash/shell execute with long delay to check what is going on use strace strace -r -o trace.log echo hi   Sometimes /etc/hosts is missing entry about hostname   127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 so just add your hostname in the end of localhost or just make new entry 127.0.0.1 localhost.localdomain localhost test1 test1.example.com ::1 localhost6.localdomain6 localhost6 or 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.0.1 test1 test1.example.com