Код:
[root@tt /home/rdc]# ifconfig vlan1
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=103<RXCSUM,TXCSUM,TSO4>
ether 00:1c:c0:10:42:78
inet 2.1.1.0 netmask 0xfffffc00 broadcast 2.1.3.255
inet6 fe80::21c:c0ff:fe10:4278%vlan1 prefixlen 64 scopeid 0x4
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 1 vlanpcp: 0 parent interface: em0
groups: vlan
[root@tt /home/rdc]# telnet 2.1.3.0
Trying 2.1.3.0...
Connected to 2.1.3.0
Escape character is '^]'.
DES-3200-28 Fast Ethernet Switch
Command Line Interface
Firmware: Build 1.88.B006
Copyright(C) 2010 D-Link Corporation. All rights reserved.
UserName:root
PassWord:*******
DES-3200-28:5#sh log
Command: show log
Index Date Time Log Text
----- ---------- -------- ------------------------------------------------------
6 2017-05-16 15:04:52 Successful login through Telnet (Username: root, IP: 2
.1.1.0)
5 2017-05-16 15:04:11 Logout through Telnet (Username: root, IP: 2.1.1.0)
4 2017-05-16 15:04:06 Successful login through Telnet (Username: root, IP: 2
.1.1.0)
3 2017-05-16 15:03:30 Logout through Telnet (Username: root, IP: 2.1.1.0)
2 2017-05-16 15:03:26 Successful login through Telnet (Username: root, IP: 2
.1.1.0)
1 2017-05-16 15:03:19 Logout through Telnet (Username: root, IP: 2.1.1.0)
DES-3200-28:5#sh ipif
Command: show ipif
IP Interface Settings
Interface Name : System
IP Address : 2.1.3.0 (MANUAL)
Subnet Mask : 255.255.252.0
VLAN Name : default
Admin. State : Enabled
DHCPv6 Client State : Disabled
Link Status : Link UP
Member Ports : 28
DHCP Option12 State : Disabled
DHCP Option12 Host Name :
Total Entries : 1
DES-3200-28:5#logo
Command: logout
DES-3200-28:5#
**********
* Logout *
**********Connection closed by foreign host.
[root@tt /home/rdc]# snmpget -v2c -c public 2.1.3.0 .1.3.6.1.2.1.31.1.1.1.15.28
IF-MIB::ifHighSpeed.28 = Gauge32: 100