Call : 381-18-529-373

Archive for December, 2008

>System

>AT Premesten na 192.168.1.111/24

Read more

>Cisco za rute

>show ip protocols
show ip route

Read more

>Dodavanje ssh usera na Solaris

>Kreiraj novu grupu ssh korisnika
groupadd -g 888 ElfakAdmin

Napravi direktorijum za njega
cd /export/home

mkdir vuckovic

Dodaj usera
useradd -d /export/home/vuckovic -m -s /bin/bash -c “Dusan Vuckovic” -g ElfakAdmin vuckovic
Promeni mu password
passwd vuckovic

Preuzmi vlasnistvo nad direktorijumom
chown -R vuckovic:ElfakAdmin /export/home/vuckovic

Edituj SSH fajl u etc
joe /etc/ssh.

Dodaj novog usera u allow listu
AllowUsers vuckovic

Restartuj sshd
ps -elf | grep sshd
Zapisi PID
kill -9

Sad ce on sam da se restartuje

Read more

>POSTFIX na Sun2

>Provera Kjua

mailq

Flush kjua
/opt/csw/sbin/postqueue -f

Konfiguracija maila
/etc/opt/csw/postfix/main.cf

Komanda za pregled prostora na disku
df -h

Read more

>Diskovi na SUN1

>c3t0d0 jw boot disk i ima slajsove
/ /dev/dsk/c3t0d0s0
/usr /dev/dsk/c3t0d0s6
/opt /dev/dsk/c3t0d0s5
/export/home /dev/dsk/c3t0d0s7

c3t1d0 Je drugi disk od 40GB i ima 2 slajsa

c1t18d0 je prvi rack sa diskovima

Odobravanje pristupa disksetu ELFAK za neki host
/usr/sbin/metaset -s elfak -a -h

Read more

>AT-9724

>create vlan VLAN9 tag 9
config vlan default del 2-15
config vlan default add tag 9
config vlan VLAN9 add untagged 2
config vlan VLAN9 add tag 9
config vlan VLAN35 add tag 9
config vlan VLAN13 add tag 9
config vlan VLAN12 add tag 9
config vlan VLAN66 add tag 9

create vlan VLAN11 tag 11
config vlan VLAN11 add untagged 10-12

create vlan VLAN12 tag 12
config vlan VLAN12 add untagged 5

create vlan VLAN13 tag 13
config vlan VLAN13 add untagged 6

create vlan VLAN15 tag 15
config vlan VLAN15 add untagged 7

create vlan VLAN32 tag 32
config vlan VLAN32 add untagged 8

create vlan VLAN34 tag 35
config vlan VLAN34 add untagged 3

create vlan VLAN35 tag 35
config vlan VLAN35 add untagged 3
config vlan VLAN35 add tag 3

create vlan VLAN66 tag 66
config vlan VLAN66 add tag 21

create ipif VLAN9 160.99.9.11/24 VLAN9 state enable
create ipif VLAN11 160.99.11.250/24 VLAN11 state enable
create ipif VLAN12 160.99.12.11/24 VLAN12 state enable
create ipif VLAN13 160.99.13.11/24 VLAN13 state enable
create ipif VLAN15 160.99.15.11/24 VLAN15 state enable
create ipif VLAN32 160.99.32.11/24 VLAN32 state enable
create ipif VLAN34 160.99.34.100/25 VLAN34 state enable
create ipif VLAN35 160.99.35.11/24 VLAN35 state enable
create ipif VLAN66 192.168.40.11/24 VLAN66 state enable

config rip ipif VLAN9 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN11 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN12 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN13 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN15 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN32 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN35 tx_mode v2_only rx_mode v2_only state enable
config rip ipif VLAN66 tx_mode v2_only rx_mode v2_only state enable
enable rip

Dodati staticku defaultnu rutu 0.0.0.0 0.0.0.0 160.99.34.101

Read more