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

Setting the DSCP value for IP to use for outgoing FTP packets, command

Page 78 highlights

The ftp client source command setting applies to all FTP sessions. When you set up an FTP session by using the ftp or ftp ipv6 command, you can also specify a different source IP address for the FTP session. IMPORTANT: To avoid FTP connection failures, when you specify a source interface for FTP packets, make sure the interface has been assigned a primary IP address. To establish an IPv4 FTP connection: Step 1. Enter system view. 2. Specify a source IP address for outgoing FTP packets. 3. Return to user view. 4. Log in to the FTP server. Command Remarks system-view N/A ftp 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. quit • (Approach 1) Log in to the FTP server in user view: ftp [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] ] • (Approach 2) Log in to the FTP server in FTP client view: a. ftp b. open server-address [ service-port ] N/A Use either approach. To establish an IPv6 FTP connection, perform one of the following tasks: Task Log in to the FTP server from user view. Command ftp ipv6 [ server-address [ service-port ] [ source ipv6 source-ipv6-address ] [ -i interface-type interface-number ] ] Remarks Log in to the FTP server from FTP client view. 1. ftp ipv6 2. open ipv6 server-address [ service-port ] [ -i interface-type interface-number ] Setting the DSCP value for IP to use for outgoing FTP packets You can set the DSCP value for IPv4 or IPv6 to use for outgoing FTP packets on an FTP client, so outgoing FTP packets are forwarded based on their priorities on transit devices. To set the DSCP value for IP to use for outgoing FTP packets: 72

  • 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

72
The
ftp client source
command setting applies to all FTP sessions. When you set up an FTP session by
using the
ftp
or
ftp ipv6
command, you can also specify a different source IP address for the FTP session.
IMPORTANT:
To avoid FTP connection failures, when you specify a source interface for FTP packets, make sure the
interface has been assigned a primary IP address.
To establish an IPv4 FTP connection:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify a source IP address
for outgoing FTP packets.
ftp 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.
3.
Return to user view.
quit
N/A
4.
Log in to the FTP server.
(Approach 1) Log in to the FTP server
in user view:
ftp
[
server-address
[
service-port
]
[
vpn-instance
vpn-instance-name
]
[
source
{
interface
interface-type
interface-number
|
ip
source-ip-address
} ] ]
(Approach 2) Log in to the FTP server
in FTP client view:
a.
ftp
b.
open
server-address
[ service-port ]
Use either approach.
To establish an IPv6 FTP connection, perform one of the following tasks:
Task
Command
Remarks
Log in to the FTP server from user
view.
ftp ipv6
[
server-address
[
service-port
]
[
source ipv6
source-ipv6-address
] [
-i
interface-type interface-number
] ]
Log in to the FTP server from FTP
client view.
1.
ftp ipv6
2.
open ipv6
server-address
[
service-port
] [
-i
interface-type
interface-number
]
Setting the DSCP value for IP to use for outgoing FTP packets
You can set the DSCP value for IPv4 or IPv6 to use for outgoing FTP packets on an FTP client, so outgoing
FTP packets are forwarded based on their priorities on transit devices.
To set the DSCP value for IP to use for outgoing FTP packets: