- 论坛徽章:
- 0
|
login: default
Change the panel mode switch to Locked and press return…
Leave it in that position for at least 5 seconds. Change the panel mode switch
to Service, and press return…
Check the version of XSCF.
XSCF> version -c xcp
XSCF#0 (Active )
XCP0 (Current): 1090
XCP1 (Reserve): 1090
Create a user xxx
XSCF> adduser xxx
XSCF> password
password: Permission denied
Change the password for xxx
XSCF> password xxx
New XSCF password:
Retype new XSCF password:
Grant xxx the following privileges, useradm, platadm, aplatop.
XSCF> setprivileges xxx useradm platadm platop
Configure the XSCF interface with an IP address, this will be the adress you connect to via telnet to manage the console.
XSCF> setnetwork xscf#0-lan#0 -m 255.255.255.0. 192.168.0.100
Enable the XSCF interface you just configured with an IP address of 192.168.0.100
XSCF> setnetwork -c up lan#0
Configure the hostname.
XSCF> sethostname xscf#0 test
Configure the domain name.
XSCF> sethostname -d test.com
You must apply the network configurations with the applynetwork command.
XSCF> applynetwork
The following network settings will be applied:
xscf#0 hostname :test
DNS domain name :test.com
interface : xscf#0-lan#0
status :up
IP address :192.168.0.100
netmask :255.255.255.0
route :
interface : xscf#0-lan#1
status :down
IP address :
netmask :
route :
Continue? [y|n] :yes
Please reset the XSCF by rebootxscf to apply the network settings.
Please confirm that the settings have been applied by executing
showhostname, shownetwork, showroute and shownameserver after rebooting
the XSCF.
Now reboot XSCF for the configuration to take effect.
XSCF> rebootxscf
After the reboot check the network settings.
XSCF> shownetwork -a
xscf#0-lan#0
Link encap:Ethernet HWaddr 00:0B:5D:E3:39:B4
inet addr:122.10.10.11 Bcast:172.20.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13160 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1943545 (1.8 MiB) TX bytes:210 (210.0 B)
Base address:0xe000
xscf#0-lan#1
Link encap:Ethernet HWaddr 00:0B:5D:E3:39:B5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Base address:0xc000
Enable ssh, it will require a reboot.
XSCF> setssh -c enable
Continue? [y|n] :y
Please reset the XSCF by rebootxscf to apply the ssh settings.
Enable telnet. You probably do not need telnet if ssh is enabled.
XSCF> settelnet -c enable
XSCF> showtelnet
Telnet status: enabled
reating a Web Server Certificate by Constructing the Self CA
■Command operation
1.Use the sethttps (8) command to create a self-signed web server certificate by specifying the DN.
Specify the DN (JP, Kanagawa, Kawasaki, Example, Development, scf-host, abc@example.com)
XSCF> sethttps -c selfsign JP Kanagawa Kawasaki Example Development scf-host abc@example.com
CA key and CA cert already exist. Do you still wish to update? [y|n] :y
Enter passphrase: xxxxxxxx
Verifying - Enter passphrase: xxxxxxxx
2.Use the showhttps (8) command to confirm the generated web server certificate.
XSCF> showhttps
HTTPS status: disabled
Server key: installed in Jul 11 06:33:25 UTC 2006
CA key: installed in Jul 11 06:33:21 UTC 2006
CA cert: installed in Jul 11 06:33:21 UTC 2006
CSR:
-----BEGIN CERTIFICATE REQUEST-----
MIIByzCCATQCAQAwgYoxCzAJBgNVBAYTAkpQMREwDwYDVQQIEwhLYW5hZ2F3YTER
MA8GA1UEBxMIS2F3YXNha2kxEDAOBgNVBAoTB0ZVSklUU1UxDDAKBgNVBAsTA0VQ
:
uni/n3g2/F5Ftnjg+M4HtfzT6VwEhG01FGP4IImqKg==
-----END CERTIFICATE REQUEST-----
3.Use the sethttps (8) command to enable https.
XSCF> sethttps -c enable
4.Use the rebootxscf (8) command to reset the XSCF.
XSCF> rebootxscf
The XSCF will be reset. Continue? [y|n] :y
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15459/showart_2143453.html |
|