1
00:00:00,420 --> 00:00:05,370
Duplex and speed negotiation is also important for connections between a PC and a switch.

2
00:00:05,550 --> 00:00:11,460
In this example, the PC is connected to the switch using this interface Ethernet two.

3
00:00:11,910 --> 00:00:16,079
At the moment, the speed negotiated is 100 megabits per second.

4
00:00:16,620 --> 00:00:20,850
So here's the switch show interface f105.

5
00:00:22,760 --> 00:00:30,770
This interface is currently running at full duplex 100 meg on the switch and that's what's being negotiated

6
00:00:30,770 --> 00:00:31,910
on the PC.

7
00:00:32,330 --> 00:00:35,030
So we can see 100 megabits per second.

8
00:00:35,300 --> 00:00:37,160
Now, we could change.

9
00:00:39,020 --> 00:00:41,810
Some of the settings on the PC.

10
00:00:42,170 --> 00:00:46,580
So if we wanted to, we could change the speed and duplex negotiation.

11
00:00:46,820 --> 00:00:52,280
At the moment it's using auto negotiation, but we could make a mistake and set it to one gigabits per

12
00:00:52,280 --> 00:00:53,570
second full duplex.

13
00:00:56,330 --> 00:00:59,960
On the switch, we see that the interface has gone down.

14
00:01:00,660 --> 00:01:02,790
It's supposedly come up again.

15
00:01:03,810 --> 00:01:09,210
So I'll just look at the duplex in the output.

16
00:01:09,390 --> 00:01:11,640
The switch is using 100 meg.

17
00:01:11,640 --> 00:01:12,840
Full duplex.

18
00:01:14,060 --> 00:01:23,000
And on the network card, it's actually moved down to 100 meg rather than using the gigabit speed that

19
00:01:23,000 --> 00:01:24,050
we configured.

20
00:01:24,710 --> 00:01:32,180
But if the PC had accepted that speed of one gigabits per second full duplex, we would have had a duplex

21
00:01:32,180 --> 00:01:37,250
and speed mismatch between the switch and the PC, which would have caused problems.

22
00:01:38,090 --> 00:01:44,750
Let's set the PC to ten meg and see if they can still negotiate properly.

23
00:01:45,440 --> 00:01:47,090
So Interface has gone down.

24
00:01:48,370 --> 00:01:52,240
It's come up and in this case, it has negotiated properly.

25
00:01:53,330 --> 00:01:58,190
In gigabit Ethernet even when set manually.

26
00:01:59,410 --> 00:02:04,750
The device will still tell the other side what speed and duplex it's using.

27
00:02:07,430 --> 00:02:11,090
So things are a lot better than they were in the past.

28
00:02:11,570 --> 00:02:15,050
Let's set the side for order negotiation.

29
00:02:15,860 --> 00:02:17,900
But what I'll do now is on the switch.

30
00:02:17,900 --> 00:02:19,430
Configure it manually.

31
00:02:21,470 --> 00:02:33,680
So interface f1052 show run interface f105 duplex and speed are not set, but let's set the speed to

32
00:02:33,680 --> 00:02:41,030
100 meg duplex to full so the configuration looks as follows.

33
00:02:41,570 --> 00:02:42,980
Interface has come up.

34
00:02:44,070 --> 00:02:45,570
What is the site using?

35
00:02:46,110 --> 00:02:48,480
It's using 100 megabits per second.

36
00:02:50,240 --> 00:02:51,450
So do show.

37
00:02:51,470 --> 00:02:56,180
Interface f105 pipe include duplex.

38
00:02:56,510 --> 00:02:57,700
That looks good.

39
00:02:57,710 --> 00:03:00,170
Let's set the duplex to half.

40
00:03:02,370 --> 00:03:03,750
And the speed.

41
00:03:06,130 --> 00:03:07,060
To ten.

42
00:03:09,870 --> 00:03:10,950
On the site.

43
00:03:11,370 --> 00:03:17,790
Negotiation has taken place successfully, so things are a lot better than they were years ago with

44
00:03:17,790 --> 00:03:19,140
duplex and speed.

45
00:03:19,140 --> 00:03:26,970
But generally the recommendation is to use or to negotiation of speed and duplex allow both sides to

46
00:03:26,970 --> 00:03:32,670
negotiate to the highest speed and duplex that they both support.

47
00:03:33,970 --> 00:03:37,750
So I'll try and break this by going to 100 full duplex.

48
00:03:40,280 --> 00:03:45,020
Interface has gone down and come up, but it's still successfully negotiated.

49
00:03:46,070 --> 00:03:49,760
So it's still showing speed of ten, meg.

50
00:03:51,020 --> 00:03:54,890
Let's, however, configure it to go to the best possible.

51
00:03:55,920 --> 00:03:56,870
Speed and duplex.

52
00:03:56,880 --> 00:03:58,980
I'll set it to use order negotiation.

53
00:04:00,590 --> 00:04:02,810
And on the switch.

54
00:04:04,580 --> 00:04:07,540
Will set the speed to order.

55
00:04:07,940 --> 00:04:09,890
Duplex to order.

56
00:04:13,700 --> 00:04:20,459
And as we can see, show interface f105 include duplex.

57
00:04:20,480 --> 00:04:23,240
The output shows full duplex 100 meg.

58
00:04:23,420 --> 00:04:30,080
So it has successfully negotiated with the PC to use 100 meg full duplex.

59
00:04:30,860 --> 00:04:34,760
So in summary or two, negotiation is the way to go today.

60
00:04:34,910 --> 00:04:39,590
If you are going to hard code, make sure that your hard code correctly on both sides.

