HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 88

Displaying and maintaining the TFTP client, TFTP client configuration example, Network requirements

Page 88 highlights

To configure the TFTP client: Step 1. Enter system view. Command system-view 2. Use an ACL to control the client's access to TFTP servers. tftp-server [ ipv6 ] acl acl-number 3. Specify a source IP address for outgoing TFTP packets. tftp client source { interface interface-type interface-number | ip source-ip-address } • For IPv4: 4. Set the DSCP value for IP to tftp client dscp dscp-value use for outgoing TFTP packets. • For IPv6: tftp client ipv6 dscp dscp-value 5. Return to user view. quit Remarks N/A Optional. By default, no ACL is used for access control. Optional. By default, the primary IP address of the output interface is used as the source IP address. Optional. The default is 0, whether the TFTP client is running IPv4 or IPv6. N/A 6. Download or upload a file. • For IPv4: tftp server-address { get | put | sget } source-filename [ destination-filename ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] • For IPv6: tftp ipv6 tftp-ipv6-server [ -i interface-type interface-number ] { get | put } source-filename [ destination-filename ] Optional. Displaying and maintaining the TFTP client Task Command Display the source IP address configuration of the TFTP client. display tftp client configuration [ | { begin | exclude | include } regular-expression ] Remarks Available in any view TFTP client configuration example Network requirements Configure the PC in Figure 39 as a TFTP server, and use TFTP to download the system software image file newest.bin from the TFTP server to the client and upload the configuration file config.cfg from the TFTP client to the server for backup. 82

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

82
To configure the TFTP client:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Use an ACL to control the
client's access to TFTP servers.
tftp-server
[
ipv6
]
acl
acl-number
Optional.
By default, no ACL is used for
access control.
3.
Specify a source IP address
for outgoing TFTP packets.
tftp client source
{
interface
interface-type interface-number
|
ip
source-ip-address
}
Optional.
By default, the primary IP
address of the output interface is
used as the source IP address.
4.
Set the DSCP value for IP to
use for outgoing TFTP packets.
For IPv4:
tftp client dscp
dscp-value
For IPv6:
tftp client ipv6 dscp
dscp-value
Optional.
The default is 0, whether the
TFTP client is running IPv4 or
IPv6.
5.
Return to user view.
quit
N/A
6.
Download or upload a file.
For IPv4:
tftp
server-address
{
get
|
put
|
sget
}
source-filename
[
destination-filename
]
[
vpn-instance
vpn-instance-name
] [
source
{
interface
interface-type
interface-number
|
ip
source-ip-address
} ]
For IPv6:
tftp ipv6
tftp-ipv6-server
[
-i
interface-type interface-number
]
{
get
|
put
}
source-filename
[
destination-filename
]
Optional.
Displaying and maintaining the TFTP client
Task
Command
Remarks
Display the source IP address configuration
of the TFTP client.
display tftp client configuration
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
TFTP client configuration example
Network requirements
Configure the PC in
Figure 39
as a TFTP server, and use TFTP to download the system software image file
newest.bin
from the TFTP server to the client and upload the configuration file
config.cfg
from the TFTP
client to the server for backup.